/* RFWIN marketing site — shared mobile nav, light-mode fix, layout polish */

html {
  color-scheme: light dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

/* Explicit light palette — do not rely on :root when system prefers dark */
[data-theme="light"] {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --muted-2: #a1a1a6;
  --line: rgba(0, 0, 0, 0.09);
  --line-2: rgba(0, 0, 0, 0.05);
  --blue: #0071e3;
  --blue-dark: #0058b9;
  --green: #1f9d57;
  --green-bg: #e7f6ee;
  --green-dot: #34c759;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 14px rgba(0, 0, 0, 0.05);
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.05), 0 18px 50px -20px rgba(0, 0, 0, 0.18);
}

body {
  overflow-x: clip;
}

.site-header__inner {
  position: relative;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex: none;
}

.nav-toggle:hover {
  background: var(--surface-2);
}

.product-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}

.product-ctas .btn {
  display: inline-flex;
  text-decoration: none;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 10px;
}

@media (min-width: 821px) {
  .site-nav-panel {
    display: flex;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 820px) {
  .site-header__inner {
    flex-wrap: wrap;
    align-items: center;
    min-height: 56px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav-panel {
    display: none;
    width: 100%;
    order: 3;
    padding: 4px 0 12px;
    border-top: 1px solid var(--line-2);
    margin-top: 4px;
  }

  .site-header.is-open .site-nav-panel {
    display: block;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex-wrap: nowrap;
    width: 100%;
  }

  .site-nav > a {
    padding: 11px 0;
    border-bottom: 1px solid var(--line-2);
    font-size: 15px;
  }

  .site-nav > a:last-of-type {
    border-bottom: none;
  }

  .site-nav .theme-btns {
    margin: 12px 0 4px;
    width: fit-content;
  }

  .site-nav .nav-cta {
    margin-top: 10px;
    text-align: center;
    justify-content: center;
    display: inline-flex;
    padding: 0.65rem 1rem;
  }

  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .example-draw-links a {
    width: 100%;
    justify-content: center;
  }

  .product-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .product-ctas .btn {
    width: 100%;
    justify-content: center;
    margin-left: 0 !important;
  }

  .section-hdr {
    margin-top: 48px;
    scroll-margin-top: 68px;
  }

  .btoggle-wrap {
    max-width: 100%;
  }

  .btoggle {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .hero-sm h1 {
    font-size: clamp(28px, 8vw, 40px);
  }

  .pricing-grid {
    grid-template-columns: 1fr !important;
  }

  .features-grid {
    grid-template-columns: 1fr !important;
  }
}
