/* SlimSana presell gate — lightweight, no frameworks */

:root {
  --green-900: #003d28;
  --green-800: #004d33;
  --green-700: #0a5c3d;
  --gold: #e8c547;
  --gold-dim: #c9a632;
  --text: #1a1f1c;
  --text-muted: #4a534e;
  --surface: #ffffff;
  --overlay: rgba(0, 20, 14, 0.72);
  --accent-cta: #e85a1c;
  --radius: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #0a2418;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green-800);
}

/* —— Background page (visible behind dimmed overlay) —— */

.site {
  min-height: 100vh;
  background: linear-gradient(165deg, #063224 0%, var(--green-900) 45%, #021910 100%);
  color: #f4f7f5;
}

.site-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0.9rem 2.5rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.88rem;
  color: var(--gold);
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

.nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.82rem;
}

.nav a:hover {
  color: #fff;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  background: var(--accent-cta);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(232, 90, 28, 0.35);
}

.btn-nav:hover {
  filter: brightness(1.06);
}

.hero {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  padding: 1.4rem 0 1.1rem;
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    padding: 3.5rem 0 2.5rem;
  }
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 7.6vw, 2.65rem);
  line-height: 1.2;
  font-weight: 800;
}

.hero p {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
  max-width: 36rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-cta-row .btn-nav {
  width: 100%;
  max-width: 290px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(circle at 50% 50%, rgba(232, 197, 71, 0.18), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  max-height: min(360px, 42vh);
  width: auto;
  margin: 0 auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}

.hero-placeholder {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.pricing-banner {
  margin-top: 1.2rem;
  background: var(--accent-cta);
  color: #fff;
  text-align: center;
  font-weight: 800;
  padding: 0.82rem 0.85rem;
  border-radius: var(--radius);
  font-size: clamp(0.92rem, 3.5vw, 1.1rem);
  letter-spacing: 0.02em;
}

.cards {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

@media (min-width: 720px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1rem 0.8rem;
  text-align: center;
}

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--gold);
}

.card p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-note {
  margin-top: 1.4rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* —— Overlay + modal gate —— */

.gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  background: var(--overlay);
  backdrop-filter: blur(2px);
}

.gate[hidden] {
  display: none;
}

.gate__dialog {
  width: min(100%, 440px);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.05rem 1rem 0.95rem;
  animation: gate-in 0.35s ease-out;
}

@keyframes gate-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.gate__dialog h2 {
  margin: 0 0 0.75rem;
  font-size: 1.08rem;
  color: #0f2433;
}

.gate__dialog p {
  margin: 0 0 1.35rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.gate__cta {
  width: 100%;
  border: none;
  border-radius: 8px;
  min-height: 50px;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, #0d4a35 0%, var(--green-800) 100%);
  box-shadow: 0 6px 20px rgba(0, 77, 51, 0.35);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.gate__cta:hover {
  filter: brightness(1.05);
}

.gate__cta:active {
  transform: scale(0.99);
}

.gate__cta:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.gate__link {
  display: block;
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.gate__link a {
  color: var(--green-800);
  font-weight: 600;
}

body.gate-open {
  overflow: hidden;
}

@media (max-width: 719px) {
  .nav a:not(.btn-nav) {
    display: none;
  }
}

@media (min-width: 720px) {
  .site-inner {
    padding: 0 1.25rem 3.6rem;
  }

  .topbar {
    gap: 1rem;
    padding: 1rem 0;
  }

  .logo {
    font-size: 0.95rem;
  }

  .nav {
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
  }

  .nav a {
    font-size: 0.875rem;
  }

  .hero {
    gap: 1.8rem;
    padding: 2.4rem 0 1.8rem;
  }

  .hero p {
    font-size: 1.02rem;
  }

  .hero-cta-row .btn-nav {
    width: auto;
    max-width: none;
  }

  .hero-visual img {
    max-height: min(400px, 50vh);
  }

  .pricing-banner {
    margin-top: 1.8rem;
    padding: 0.9rem 1rem;
  }

  .cards {
    gap: 1rem;
    margin-top: 1.25rem;
  }

  .card {
    padding: 1.25rem 1rem;
  }

  .footer-note {
    margin-top: 2.5rem;
  }

  .gate {
    padding: 1.25rem;
  }

  .gate__dialog {
    padding: 1.75rem 1.75rem 1.5rem;
  }

  .gate__dialog h2 {
    font-size: 1.35rem;
  }

  .gate__dialog p {
    font-size: 0.95rem;
  }

  .gate__cta {
    min-height: 44px;
    font-size: 1rem;
  }
}
