/* F2 first-visit conversion layer. Mobile-first; scoped to #f2-hero (never loaded for logged-in members). */
#f2-hero, #f2-hero * { box-sizing: border-box; }
#f2-hero { margin: 7px; color: #1b1b1b; }
#f2-hero [hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* anchor targets clear the sticky header (60-65px phones, 120px tablet/desktop) */
#f2-hero .f2-sec, .postanchor { scroll-margin-top: 78px; }

/* ---- buttons (>=48px tap targets) ---- */
.f2-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 14px;
  font-size: 1.125rem; font-weight: 800; line-height: 1.1; text-decoration: none; text-align: center; border: 2px solid transparent; cursor: pointer; }
.f2-btn:focus-visible, .f2-link:focus-visible, #f2-hero a:focus-visible { outline: 3px solid #14213d; outline-offset: 2px; }
.f2-btn-join { background: #ffd21f; color: #14213d; box-shadow: 0 3px 0 #b48f00, 2px 3px 6px rgba(0,0,0,.35); }
.f2-btn-join:hover { background: #ffde55; color: #14213d; }
.f2-btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.f2-btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ---- hero ---- */
.f2-hero { background: linear-gradient(160deg, #005a96 0%, #007dcd 55%, #2b9ad8 100%); color: #fff; border: 2px solid #fff;
  border-radius: 14px; box-shadow: 3px 3px 2px #aaa; padding: 18px 16px 14px; }
.f2-eyebrow { margin: 0 0 4px; font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #ffe27a; }
#f2-hero .f2-h1 { margin: 0 0 10px; font-size: clamp(2.1rem, 9.5vw, 3.4rem); line-height: 1.08; font-weight: 800; color: #fff; }  /* beats the site's .rez_container h1 {line-height:.7} */
.f2-lede { margin: 0 0 14px; font-size: 1.05rem; line-height: 1.4; max-width: 46ch; color: #fff; }
.f2-actions { display: flex; flex-direction: column; gap: 10px; }
.f2-actions .f2-btn { width: 100%; }
.f2-fine { margin: 10px 0 0; font-size: .9rem; color: #eaf6ff; }
.f2-fine a { color: #fff; font-weight: 700; text-decoration: underline; padding: 6px 2px; }

/* ---- cards (match the site's grey card look) ---- */
.f2-card { margin: 10px 0 0; background: #e6e6e6; border: 2px solid #fff; box-shadow: 3px 3px 2px #aaa; border-radius: 14px; padding: 12px; }
#f2-hero .f2-h2 { margin: 0 0 6px; font-size: 1.2rem; line-height: 1.2; font-weight: 800; color: #14213d; }
.f2-card p { margin: 0 0 8px; font-size: 1rem; line-height: 1.42; }
.f2-card p:last-child { margin-bottom: 0; }
.f2-sub { color: #333; }

/* ---- community strip: swipe on phones, grid on wider screens ---- */
.f2-strip { list-style: none; margin: 8px -4px 6px; padding: 2px 4px 10px; display: flex; gap: 10px; overflow-x: auto;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.f2-tile { flex: 0 0 68%; max-width: 250px; scroll-snap-align: start; margin: 0; padding: 0; }
.f2-tile a { display: block; height: 100%; background: #fff; border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: 1px 2px 4px rgba(0,0,0,.28); }
.f2-photo { display: block; width: 100%; aspect-ratio: 4 / 3; background: #cfd6dc; overflow: hidden; }
.f2-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.f2-tile-body { display: block; padding: 8px 10px 10px; }
.f2-tile-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .98rem; font-weight: 800; line-height: 1.2; color: #14213d; overflow-wrap: anywhere; }
.f2-tile-meta { display: block; margin-top: 4px; font-size: .82rem; color: #444; overflow-wrap: anywhere; }
.f2-legend { font-size: .85rem !important; color: #333; }
.f2-more { text-align: right; }
.f2-more a { display: inline-block; padding: 10px 4px; font-weight: 700; color: #0a58a6; }

/* ---- why join ---- */
.f2-benefits { list-style: none; margin: 4px 0 12px; padding: 0; }
.f2-benefits li { position: relative; margin: 0 0 8px; padding-left: 26px; font-size: 1rem; line-height: 1.4; }
.f2-benefits li::before { content: ""; position: absolute; left: 3px; top: .38em; width: 12px; height: 12px; border-radius: 50%; background: #007dcd; box-shadow: 0 0 0 3px #bfe1f6; }
.f2-cta2 { display: flex; flex-direction: column; gap: 8px; align-items: stretch; background: #fff; border-radius: 12px; padding: 12px; }
.f2-cta2 p { margin: 0; font-weight: 800; color: #14213d; text-align: center; }
#f2-hero .f2-feedhead { margin: 16px 4px 2px; font-size: 1.15rem; line-height: 1.2; font-weight: 800; color: #14213d; }

/* ---- compact bar for returning logged-out visitors ---- */
.f2-compact { display: none; }
#f2-hero[data-mode="compact"] .f2-full { display: none; }
#f2-hero[data-mode="compact"] .f2-compact { display: flex; }
#f2-hero[data-mode="expanded"] .f2-compact { display: none; }
.f2-compact { align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; background: linear-gradient(160deg,#005a96,#007dcd);
  border: 2px solid #fff; border-radius: 14px; box-shadow: 3px 3px 2px #aaa; padding: 10px 12px; color: #fff; }
.f2-compact-text { font-size: 1rem; line-height: 1.25; }
.f2-compact-text span { color: #ffe27a; font-weight: 700; white-space: nowrap; }
.f2-compact-actions { display: flex; align-items: center; gap: 12px; }
.f2-compact .f2-btn { min-height: 48px; padding: 0 18px; font-size: 1.05rem; }
.f2-link { background: none; border: 0; color: #fff; text-decoration: underline; font: inherit; font-weight: 700; min-height: 48px; padding: 0 6px; cursor: pointer; }

/* ---- >= 600px: buttons side by side ---- */
@media (min-width: 600px) {
  .f2-actions { flex-direction: row; }
  .f2-actions .f2-btn { width: auto; min-width: 190px; }
  .f2-hero { padding: 26px 26px 20px; }
  .f2-lede { font-size: 1.15rem; }
  .f2-cta2 { flex-direction: row; justify-content: space-between; align-items: center; }
  .f2-cta2 p { text-align: left; }
}
/* ---- tablet / desktop: header is 120px tall; strip becomes a grid ---- */
@media (min-width: 768px) {
  #f2-hero { margin: 10px 7px; }
  #f2-hero .f2-sec, .postanchor { scroll-margin-top: 138px; }
  .f2-card { padding: 16px 18px; }
  .f2-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin: 8px 0 4px; padding: 2px 0 6px; }
  .f2-tile { flex: none; max-width: none; }
  .f2-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .f2-benefits li { margin: 0; }
}
@media (min-width: 1024px) { #f2-hero .f2-h1 { font-size: 3.6rem; } .f2-hero { padding: 34px 34px 26px; } }
