@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

*:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}
h1 { font-weight: 700; }
p { max-width: 68ch; }

a { color: var(--primary); }
a:hover { color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 2rem;
  background: var(--ink);
  flex-wrap: wrap;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark { color: var(--gold); flex-shrink: 0; }

.site-search { position: relative; flex: 1; min-width: 160px; max-width: 320px; }
.site-search input {
  width: 100%;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: rgba(255,255,255,0.94);
}
.site-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(20,32,28,0.28);
  overflow: hidden;
  z-index: 20;
}
.search-result {
  display: flex;
  flex-direction: column;
  padding: 0.6rem 0.9rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid rgba(20,32,28,0.08);
}
.search-result:last-child { border-bottom: none; }
.search-result:hover, .search-result:focus { background: var(--paper); }
.search-result span { font-size: 0.8rem; color: var(--muted); }
.search-empty { padding: 0.75rem; margin: 0; color: var(--muted); font-size: 0.9rem; }

.site-nav { display: flex; gap: 1.35rem; align-items: center; flex-wrap: wrap; }
.site-nav a:not(.btn) { color: var(--paper); text-decoration: none; font-weight: 500; opacity: 0.92; }
.site-nav a:not(.btn):hover { opacity: 1; text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  font-size: 0.98rem;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; border: 2px solid var(--primary); color: var(--primary); padding: calc(0.7rem - 2px) calc(1.4rem - 2px); }
.btn-ghost.active { background: var(--primary); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 5.5rem 2rem 0;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  max-width: 820px;
  margin: 0 auto 1rem;
  color: var(--paper);
}
.hero > p {
  max-width: 46ch;
  margin: 0 auto 1.75rem;
  color: rgba(237,231,218,0.86);
  font-size: 1.08rem;
}
.hero .btn-accent { margin-bottom: 3rem; }

.hero-ridge {
  display: block;
  width: 100%;
  height: auto;
  color: var(--primary);
}
.hero-ridge .ridge-far { opacity: 0.35; }
.hero-ridge .ridge-near { opacity: 0.65; }
.hero-ridge .ridge-front { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .hero-ridge path {
    animation: rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .hero-ridge .ridge-near { animation-delay: 0.08s; }
  .hero-ridge .ridge-front { animation-delay: 0.16s; }
  @keyframes rise {
    from { transform: translateY(18px); opacity: 0; }
  }
}

.hero-small {
  padding: 3rem 2rem 1.5rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.hero-small p { margin-left: auto; margin-right: auto; }
.hero-small h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* ---------- Strips / banners ---------- */
.founding-strip {
  background: var(--gold);
  color: var(--ink);
  text-align: center;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.founding-strip a { color: var(--ink); text-decoration: underline; font-weight: 700; }

.sponsor-banner { background: var(--surface); border-bottom: 1px solid rgba(20,32,28,0.08); color: var(--ink); text-align: center; padding: 0.6rem; font-weight: 600; }
.sponsor-banner .eyebrow { display: none; }

/* ---------- Sections ---------- */
/* Section container/rhythm now handled by Tailwind utility classes
   (max-w-6xl mx-auto px-6 py-14 md:py-20) applied directly in templates -
   see tailwind-input.css and the build step in package.json. */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 2rem 0.5rem;
  text-align: center;
}
.stat { display: flex; flex-direction: column; }
.stat-value { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.85rem; color: var(--muted); }
.stat-note { font-size: 0.75rem; color: var(--muted); opacity: 0.8; }

.mission-section { text-align: center; max-width: 640px; }
.mission-section .eyebrow { display: none; }
.gives-back-note {
  display: inline-block;
  font-weight: 600;
  background: var(--surface);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.92rem;
}

.spotlight-section { max-width: 900px; }
.spotlight-section .eyebrow { display: none; }
.spotlight-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  background: var(--surface);
  border-radius: 14px;
  padding: 1.75rem;
}
.spotlight-card img { width: 100%; max-width: 320px; height: 180px; object-fit: cover; border-radius: 10px; }
.spotlight-card p { margin-left: auto; margin-right: auto; }
.spotlight-howto { font-size: 0.85rem; color: var(--muted); }
.spotlight-card h3::before {
  content: "Member spotlight — ";
  font-weight: 400;
  color: var(--muted);
  font-size: 0.62em;
  font-family: var(--font-body);
  display: block;
  margin-bottom: 0.15rem;
}

/* ---------- Grids ---------- */
.listing-grid, .plans-grid, .category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
}

/* ---------- Listing cards: tier encoded as a structural spine, not a floating badge ---------- */
.listing-card, .listing-detail, .plan-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.35rem;
  position: relative;
  text-align: center;
}
.listing-card, .listing-detail { border-left: 5px solid transparent; }

.listing-card.tier-featured, .listing-detail.tier-featured {
  border-left-color: var(--primary);
  border-radius: 0 12px 12px 0;
}
.listing-card.tier-premium, .listing-detail.tier-premium {
  border-left-color: var(--gold);
  border-radius: 0 12px 12px 0;
}

.tier-tag { font-size: 0.78rem; font-weight: 600; margin: 0 0 0.35rem; }
.tier-tag-featured { color: var(--primary); }
.tier-tag-premium { color: #8a6a1e; }
.tier-tag::before { content: "●"; font-size: 0.55em; vertical-align: 0.15em; margin-right: 0.4em; }

.listing-photo { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; margin-bottom: 0.75rem; }
.listing-photo-large { width: 100%; max-height: 320px; object-fit: cover; border-radius: 12px; margin-bottom: 1rem; }

.listing-meta { color: var(--muted); font-size: 0.9rem; }
.deal-badge, .deal-callout {
  background: rgba(201,74,28,0.1);
  color: #8f381a;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.listing-stats-bar { display: flex; gap: 1rem; justify-content: center; font-size: 0.85rem; color: var(--muted); margin: 0.5rem 0 1rem; }
.listing-stats-bar strong { color: var(--ink); }

.deal-boost-cta {
  background: var(--surface);
  border: 1px dashed var(--gold);
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
}
.deal-boost-cta p { margin-left: auto; margin-right: auto; }

.listing-cta {
  display: inline-block;
  margin-top: 0.6rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary);
  text-decoration: none;
}
.listing-cta::after { content: " →"; }
.listing-cta:hover { color: var(--ink); text-decoration: underline; }

.listing-body { margin: 1.25rem 0; }
.listing-body p { color: var(--ink); margin-left: auto; margin-right: auto; }
.listing-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }

.upsell-note { margin-top: 1rem; font-size: 0.92rem; color: var(--muted); margin-left: auto; margin-right: auto; }

/* ---------- Category tiles ---------- */
.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface);
  border-radius: 12px;
  padding: 1.35rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease;
}
.category-tile:hover { transform: translateY(-2px); }
.category-tile span { color: var(--muted); font-size: 0.85rem; margin-top: 0.3rem; }

/* ---------- Pricing ---------- */
.billing-toggle { display: flex; justify-content: center; gap: 0.5rem; margin: 1.5rem 0; }

.plan-card { display: flex; flex-direction: column; align-items: center; }
.plan-price { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; }
.plan-price .billing-note { font-size: 0.85rem; color: var(--muted); font-family: var(--font-body); font-weight: 400; }
.plan-card ul { list-style: none; padding: 0; margin: 0 0 1.25rem; flex: 1; }
.plan-card li { margin-bottom: 0.3rem; }
.plan-card > .btn { align-self: center; }
.plan-featured { border-top: 3px solid var(--primary); }
.plan-premium { border-top: 3px solid var(--gold); }

.plan-confirmation {
  background: var(--surface);
  border-left: 4px solid var(--primary);
  padding: 0.85rem 1.1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

/* ---------- Forms ---------- */
.listing-form { display: grid; gap: 1rem; max-width: 600px; }
.listing-form label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 600; font-size: 0.9rem; }
.listing-form input, .listing-form select, .listing-form textarea {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(20,32,28,0.18);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--surface);
  color: var(--ink);
}
.listing-form input:focus, .listing-form select:focus, .listing-form textarea:focus {
  border-color: var(--primary);
}
.form-note { font-size: 0.85rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-section { max-width: 800px; }
.faq-item { background: var(--surface); border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 0.75rem; text-align: center; }
.faq-item summary { font-weight: 600; cursor: pointer; font-family: var(--font-display); }
.faq-item p { margin: 0.6rem auto 0; color: var(--muted); text-align: left; max-width: 60ch; }

/* ---------- Activation steps ---------- */
.activation-steps { display: grid; gap: 1rem; max-width: 600px; margin: 1.5rem auto 0; text-align: center; }
.activation-step { background: var(--surface); border-radius: 10px; padding: 1.3rem; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.activation-step p { margin-left: auto; margin-right: auto; }
.activation-step .step-num {
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  flex-shrink: 0;
}

/* ---------- Newsletter / network teaser ---------- */
.newsletter-section {
  background: var(--ink);
  color: var(--paper);
  border-radius: 16px;
  text-align: center;
  max-width: 700px;
}
.newsletter-section h2 { color: var(--paper); }
.newsletter-section p { color: rgba(237,231,218,0.82); margin-left: auto; margin-right: auto; }
.newsletter-form { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.1rem; }
.newsletter-form input {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: none;
  min-width: 240px;
  font-family: var(--font-body);
}

/* ---------- Events ---------- */
.events-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.event-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  background: var(--surface);
  border-radius: 10px;
  padding: 1.1rem;
}
.event-row p { margin-left: auto; margin-right: auto; }

/* Distinct from .event-row on purpose: the ops dashboard is a scannable
   operational list (renewals, nominations with action buttons), not
   marketing content - a centered stack would hurt scanability here. */
.ops-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.2rem;
  background: var(--surface);
  border-radius: 10px;
  padding: 1.1rem;
}
.event-date { font-weight: 700; color: var(--primary); font-family: var(--font-display); }

/* ---------- Testimonials ---------- */
.testimonials-section { text-align: center; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; margin-top: 1.5rem; }
.testimonial-card { background: var(--surface); border-radius: 12px; padding: 1.5rem; margin: 0; text-align: center; }
.testimonial-card p { margin-left: auto; margin-right: auto; }
.testimonial-card p { font-family: var(--font-display); font-size: 1.05rem; }
.testimonial-card cite { font-weight: 600; font-style: normal; color: var(--primary); font-size: 0.9rem; }

/* ---------- Nominate ---------- */
.nominate-section { text-align: center; max-width: 700px; }
.nominate-form { display: flex; gap: 0.55rem; justify-content: center; flex-wrap: wrap; margin-top: 1.1rem; }
.nominate-form input, .nominate-form select {
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(20,32,28,0.18);
  font-family: var(--font-body);
  background: var(--surface);
}

/* ---------- Ops dashboard ---------- */
.ops-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.ops-card { background: var(--surface); border-radius: 12px; padding: 1.25rem; display: flex; flex-direction: column; text-align: center; }

/* ---------- CTA strip ---------- */
.cta-strip {
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.cta-strip h2 { color: var(--paper); }
.cta-strip p { color: rgba(237,231,218,0.82); margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); text-align: center; }
.footer-contour { display: block; width: 100%; height: 32px; color: var(--primary); }
.footer-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem 2rem;
  gap: 1rem;
}
.footer-body p { margin: 0.3rem auto 0; color: rgba(237,231,218,0.72); font-size: 0.92rem; }
.footer-links { display: flex; justify-content: center; gap: 1.35rem; flex-wrap: wrap; }
.footer-links a { color: var(--paper); text-decoration: none; opacity: 0.88; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }

@media (max-width: 640px) {
  .site-header { flex-direction: column; align-items: center; gap: 1rem; }
  .hero { padding-top: 4rem; }
}
