/*
 * Leafy premium design kit.
 * Scoped by body.leafy-premium-page so legacy pages keep their structure while
 * inheriting the visual language of the redesigned home.
 */
:root {
  --leafy-canopy: #173d28;
  --leafy-canopy-2: #0f261a;
  --leafy-moss: #5f8d4e;
  --leafy-sprout: #b8d866;
  --leafy-cream: #fbf4e4;
  --leafy-paper: #fffaf0;
  --leafy-sand: #eadbbd;
  --leafy-ink: #17231a;
  --leafy-muted: #677461;
  --leafy-line: rgba(23, 61, 40, .14);
  --leafy-gold: #d3a84e;
  --leafy-shadow: 0 30px 90px rgba(16, 38, 26, .16);
}

body.leafy-premium-page {
  color: var(--leafy-ink) !important;
  background:
    radial-gradient(circle at 8% 2%, rgba(211, 168, 78, .28), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(184, 216, 102, .26), transparent 24rem),
    linear-gradient(180deg, #fff8ea 0%, #f3ead8 52%, #eef6e8 100%) !important;
  font-family: Manrope, sans-serif !important;
  line-height: 1.62 !important;
  min-height: 100vh;
}

body.leafy-premium-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .32;
  background-image:
    linear-gradient(rgba(23, 61, 40, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 61, 40, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000, transparent 82%);
}

body.leafy-premium-page a {
  color: var(--leafy-canopy);
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
}

body.leafy-premium-page h1,
body.leafy-premium-page h2,
body.leafy-premium-page h3 {
  color: var(--leafy-ink) !important;
  font-family: Fraunces, serif !important;
  letter-spacing: -.045em;
}

body.leafy-premium-page h1 {
  font-size: clamp(2.35rem, 6vw, 5.6rem) !important;
  line-height: .92 !important;
}

body.leafy-premium-page h2 {
  font-size: clamp(1.65rem, 3.6vw, 3.1rem) !important;
  line-height: 1 !important;
}

body.leafy-premium-page p,
body.leafy-premium-page li,
body.leafy-premium-page td,
body.leafy-premium-page small {
  color: inherit;
}

body.leafy-premium-page nav,
body.leafy-premium-page header.bar nav {
  width: min(1180px, calc(100% - 28px)) !important;
  min-height: 64px !important;
  height: auto !important;
  margin: 14px auto !important;
  padding: 10px 12px 10px 18px !important;
  border: 1px solid rgba(255, 255, 255, .54) !important;
  border-radius: 999px !important;
  background: rgba(255, 250, 240, .76) !important;
  box-shadow: 0 18px 50px rgba(23, 61, 40, .1) !important;
  backdrop-filter: blur(18px) saturate(1.3);
}

body.leafy-premium-page header.bar {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
}

body.leafy-premium-page nav .brand,
body.leafy-premium-page nav > a:first-child {
  color: var(--leafy-canopy) !important;
  font-weight: 1000 !important;
  letter-spacing: -.03em;
}

body.leafy-premium-page nav img {
  border-radius: 12px;
}

body.leafy-premium-page nav .links,
body.leafy-premium-page nav div[style*="margin-left:auto"] {
  align-items: center !important;
  gap: 16px !important;
}

body.leafy-premium-page nav a {
  color: #314534 !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

body.leafy-premium-page > .wrap,
body.leafy-premium-page > main.wrap,
body.leafy-premium-page > div[style*="max-width"],
body.leafy-premium-page .container {
  width: min(1120px, calc(100% - 32px)) !important;
  max-width: 1120px !important;
  margin: 34px auto 70px !important;
}

body.leafy-premium-page .hero,
body.leafy-premium-page main > section:first-child,
body.leafy-premium-page > .wrap > section:first-child {
  border: 1px solid rgba(23, 61, 40, .12);
  border-radius: 34px;
  background:
    radial-gradient(circle at 9% 12%, rgba(184, 216, 102, .21), transparent 18rem),
    linear-gradient(135deg, rgba(255, 250, 240, .82), rgba(238, 246, 232, .88));
  box-shadow: var(--leafy-shadow);
  overflow: hidden;
}

body.leafy-premium-page .hero {
  padding: clamp(32px, 5vw, 58px) !important;
}

body.leafy-premium-page .hero p {
  color: var(--leafy-muted) !important;
  opacity: 1 !important;
}

body.leafy-premium-page .eyebrow,
body.leafy-premium-page .badge,
body.leafy-premium-page .tag,
body.leafy-premium-page .src-chip,
body.leafy-premium-page .conf-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(23, 61, 40, .12);
  border-radius: 999px;
  background: rgba(255, 250, 240, .72);
  box-shadow: 0 10px 28px rgba(23, 61, 40, .07);
  color: #64733f !important;
  font-family: Manrope, sans-serif !important;
  font-size: .76rem !important;
  font-weight: 1000 !important;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.leafy-premium-page .card,
body.leafy-premium-page .tile,
body.leafy-premium-page .endpoint,
body.leafy-premium-page .lvl,
body.leafy-premium-page .callout,
body.leafy-premium-page .safe-chip,
body.leafy-premium-page article,
body.leafy-premium-page details,
body.leafy-premium-page div[style*="background:#fff"],
body.leafy-premium-page div[style*="background: #fff"] {
  border: 1px solid rgba(23, 61, 40, .12) !important;
  border-radius: 26px !important;
  background: rgba(255, 250, 240, .74) !important;
  box-shadow: 0 18px 48px rgba(23, 61, 40, .08) !important;
}

body.leafy-premium-page .card,
body.leafy-premium-page .tile,
body.leafy-premium-page .safe-chip,
body.leafy-premium-page article,
body.leafy-premium-page details {
  padding: clamp(18px, 2.2vw, 28px) !important;
}

body.leafy-premium-page .grid,
body.leafy-premium-page .grid3,
body.leafy-premium-page .steps,
body.leafy-premium-page .levels,
body.leafy-premium-page .src-row {
  gap: 18px !important;
}

body.leafy-premium-page table {
  border-collapse: collapse !important;
  overflow: hidden !important;
  border: 1px solid rgba(23, 61, 40, .12) !important;
  border-radius: 26px !important;
  background: rgba(255, 250, 240, .72) !important;
  box-shadow: 0 18px 48px rgba(23, 61, 40, .08) !important;
}

body.leafy-premium-page th {
  background: rgba(23, 61, 40, .08) !important;
  color: #52602f !important;
  font-size: .74rem !important;
  font-weight: 1000 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.leafy-premium-page th,
body.leafy-premium-page td {
  border-color: rgba(23, 61, 40, .11) !important;
  padding: 15px 16px !important;
}

body.leafy-premium-page pre,
body.leafy-premium-page code:not(#keyDisplay) {
  border: 1px solid rgba(255, 255, 255, .11) !important;
  border-radius: 22px !important;
  background: #0a120d !important;
  color: var(--leafy-sprout) !important;
}

body.leafy-premium-page a.cta,
body.leafy-premium-page a.btn,
body.leafy-premium-page .btn,
body.leafy-premium-page .buy,
body.leafy-premium-page .b-app,
body.leafy-premium-page .b-primary,
body.leafy-premium-page button.cta,
body.leafy-premium-page button.buy,
body.leafy-premium-page a[href*="play.google.com"],
body.leafy-premium-page a[style*="background:#4caf76"],
body.leafy-premium-page a[style*="background:linear-gradient"],
body.leafy-premium-page button[style*="background"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  padding: 13px 21px !important;
  border: 1px solid rgba(23, 61, 40, .14) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--leafy-canopy), #2d6f43 58%, #7ea842) !important;
  color: #fff !important;
  font-family: Manrope, sans-serif !important;
  font-weight: 1000 !important;
  text-decoration: none !important;
  box-shadow: 0 16px 38px rgba(23, 61, 40, .16) !important;
}

body.leafy-premium-page .ghost,
body.leafy-premium-page .b-soft,
body.leafy-premium-page .safe-chip,
body.leafy-premium-page a[style*="background:#fff"] {
  background: rgba(255, 250, 240, .72) !important;
  color: var(--leafy-canopy) !important;
}

body.leafy-premium-page .safe-chip {
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease;
}

body.leafy-premium-page .safe-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(23, 61, 40, .12) !important;
}

body.leafy-premium-page div[style*="background:#1a3d2b"],
body.leafy-premium-page div[style*="background:#16281d"],
body.leafy-premium-page .cta,
body.leafy-premium-page .dev,
body.leafy-premium-page .appcta {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  border-radius: 30px !important;
  background: linear-gradient(135deg, #101d15, #173d28 58%, #3f602a) !important;
  color: #eaf6df !important;
  box-shadow: var(--leafy-shadow) !important;
}

body.leafy-premium-page div[style*="background:#1a3d2b"] p,
body.leafy-premium-page div[style*="background:#16281d"] p,
body.leafy-premium-page .cta p,
body.leafy-premium-page .dev p,
body.leafy-premium-page .appcta p {
  color: #d8e7d4 !important;
}

body.leafy-premium-page div[style*="background:#1a3d2b"] h1,
body.leafy-premium-page div[style*="background:#1a3d2b"] h2,
body.leafy-premium-page div[style*="background:#1a3d2b"] h3,
body.leafy-premium-page div[style*="background:#16281d"] h1,
body.leafy-premium-page div[style*="background:#16281d"] h2,
body.leafy-premium-page div[style*="background:#16281d"] h3,
body.leafy-premium-page .cta h1,
body.leafy-premium-page .cta h2,
body.leafy-premium-page .cta h3,
body.leafy-premium-page .dev h1,
body.leafy-premium-page .dev h2,
body.leafy-premium-page .dev h3,
body.leafy-premium-page .appcta h1,
body.leafy-premium-page .appcta h2,
body.leafy-premium-page .appcta h3 {
  color: #fffaf0 !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .16);
}

body.leafy-premium-page img[loading],
body.leafy-premium-page figure img,
body.leafy-premium-page .hero img:not(nav img) {
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 20% 18%, rgba(184, 216, 102, .22), transparent 9rem),
    radial-gradient(circle at 82% 78%, rgba(211, 168, 78, .18), transparent 10rem),
    linear-gradient(135deg, rgba(238, 246, 232, .94), rgba(255, 250, 240, .9)) !important;
}

body.leafy-premium-page footer {
  margin-top: 44px !important;
  border-top: 1px solid rgba(23, 61, 40, .12) !important;
  background: transparent !important;
  color: #62705f !important;
  font-family: Manrope, sans-serif !important;
  font-weight: 800 !important;
}

body.leafy-premium-page input,
body.leafy-premium-page textarea,
body.leafy-premium-page select {
  border: 1px solid rgba(23, 61, 40, .14) !important;
  border-radius: 16px !important;
  background: rgba(255, 250, 240, .9) !important;
  color: var(--leafy-ink) !important;
  font-family: Manrope, sans-serif !important;
}

body.leafy-premium-page .langsw button,
body.leafy-premium-page .seg button,
body.leafy-premium-page .chip,
body.leafy-premium-page .reco,
body.leafy-premium-page .score {
  border-radius: 22px !important;
  border-color: rgba(23, 61, 40, .12) !important;
  box-shadow: 0 14px 36px rgba(23, 61, 40, .07) !important;
}

@media (max-width: 760px) {
  body.leafy-premium-page nav,
  body.leafy-premium-page header.bar nav {
    width: calc(100% - 24px) !important;
    border-radius: 24px !important;
  }

  body.leafy-premium-page nav .links a:not(.cta-mini):not(.nav-login),
  body.leafy-premium-page nav div[style*="margin-left:auto"] a:not(:last-child) {
    display: none !important;
  }

  body.leafy-premium-page > .wrap,
  body.leafy-premium-page > main.wrap,
  body.leafy-premium-page > div[style*="max-width"],
  body.leafy-premium-page .container {
    width: calc(100% - 24px) !important;
    margin-top: 20px !important;
  }

  body.leafy-premium-page h1 {
    font-size: clamp(2.25rem, 13vw, 3.55rem) !important;
  }

  body.leafy-premium-page .hero,
  body.leafy-premium-page main > section:first-child,
  body.leafy-premium-page > .wrap > section:first-child {
    border-radius: 28px;
  }
}
