/* ═══════════════════════════════════════════════════════
   ShareADeal — styles.css  (soft-launch — compact edition)
   Mobile-first. One primary CTA. Minimal motion.
═══════════════════════════════════════════════════════ */

:root {
  --bg:          #f4f6fa;
  --bg2:         #eef1f7;
  --green:       #00b377;
  --green-d:     #009962;
  --green-faint: rgba(0, 179, 119, 0.1);
  --text:        #0f172a;
  --text-2:      #475569;
  --text-3:      #64748b;
  --border:      rgba(15, 23, 42, 0.1);
  --card:        #ffffff;
  --r:           14px;
  --r-sm:        10px;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --header-h:    69px; /* actual .topbar height, same at every width */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: 'Outfit', sans-serif;
  /* Soft green wave banner behind the hero, fading into the flat --bg
     color it sits on before "How it works" — everything below is
     unaffected since sections/cards already paint their own background. */
  background-color: var(--bg);
  background-image: url('bg-wave.svg');
  background-repeat: no-repeat;
  background-position: top center;
  /* Fixed height, width auto (keeps the svg's own aspect ratio) — cropped
     left/right on narrow viewports instead of squished, which is what
     was making the pattern look denser/more saturated on mobile. */
  background-size: auto 480px;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Sticky footer: on short pages (about/contact/terms/privacy) this keeps
     the footer pinned to the bottom of the viewport instead of floating
     right under the short content with a big gap below it. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

/* ── Icons — Material Symbols, replaces emoji glyphs everywhere on the
   page. font-size/color are inherited from whatever element the icon
   sits inside (badge, button, step-icon, etc.), so no per-icon sizing
   is needed here. ── */
.icon {
  font-family: 'Material Symbols Outlined';
  font-weight: normal; font-style: normal;
  line-height: 1; letter-spacing: normal; text-transform: none;
  display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr;
  vertical-align: middle;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

/* ── Scroll-reveal — a short, one-time fade+rise as each section enters
   the viewport (see initScrollReveal in main.js). Kept separate from the
   hero's load-time .fade-in above. ── */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ── Subtle, one-time entrance on the hero at page load only.
     Nothing else on the page animates on scroll — short page, no need. ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; animation: fadeInUp 0.5s var(--ease) forwards; }
.fade-in.d1 { animation-delay: 0.05s; }
.fade-in.d2 { animation-delay: 0.12s; }
.fade-in.d3 { animation-delay: 0.2s; }
.fade-in.d4 { animation-delay: 0.28s; }
.fade-in.d5 { animation-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; animation: none; }
}

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 100px;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(0, 179, 119, 0.28); }
.btn-primary:hover { background: var(--green-d); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-outline { background: #fff; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--green); color: var(--green-d); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; width: 100%; }
@media (min-width: 560px) { .btn-lg { width: auto; } }

/* ── Top bar ───────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: rgba(244, 246, 250, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

/* Anchor targets reserve space for the sticky header so a jump (nav
   click, #hash load) stops with the section visible below it instead
   of tucking the section's top underneath it. */
#top, #how, #faq { scroll-margin-top: calc(var(--header-h) + 16px); }
.brand { display: flex; align-items: center; min-width: 0; }
.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* ── Nav — single list of links, reflowed by CSS alone between a
   collapsed mobile/tablet dropdown (below 900px) and a plain
   horizontal desktop bar (900px+). .topbar's `position: sticky`
   also makes it the positioning context for .nav's `absolute` below. ── */
.nav-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-sm); color: var(--text);
}
.nav-toggle:hover { background: var(--bg2); }
.nav-toggle .icon { font-size: 1.4rem; }

.nav {
  position: absolute; top: 100%; left: 0; right: 0;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--card);
  max-height: 0; overflow: hidden;
  transition: max-height 0.25s var(--ease);
}
/* Padding/border/shadow only apply once open — otherwise (being padding
   and border, which box-sizing:border-box can't shrink past) they'd
   force a ~21px floor on this box even while max-height is 0, showing
   as a phantom white strip under the header when the menu is closed. */
.nav.nav-open {
  max-height: 320px;
  padding: 4px 20px 16px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.08);
}
.nav-link {
  padding: 12px 2px; font-size: 0.92rem; font-weight: 600; color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
.nav-link:hover { color: var(--text); }
.topbar > .nav-cta { margin-left: auto; margin-right: 10px; flex-shrink: 0; }

/* ── Login page ─────────────────────────────────────── */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 48px;
}
.auth-card {
  width: min(100%, 480px);
  padding: 36px 28px 30px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
  text-align: center;
}
.auth-eyebrow {
  margin-bottom: 10px;
  color: var(--green-d);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth-card h1 {
  font-size: clamp(1.9rem, 6vw, 2.45rem);
  line-height: 1.15;
}
.auth-intro {
  margin-top: 12px;
  color: var(--text-2);
}
.auth-options {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
.auth-option {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 18px;
  color: var(--text);
  background: #fff;
  border: 1.5px solid rgba(15, 23, 42, 0.16);
  border-radius: 12px;
  font-size: 0.96rem;
  font-weight: 600;
  transition: border-color 0.15s var(--ease), transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.auth-option:hover {
  border-color: var(--green);
  box-shadow: 0 5px 16px rgba(0, 179, 119, 0.12);
  transform: translateY(-1px);
}
.auth-provider-logo { width: 22px; height: 22px; flex: 0 0 auto; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-3);
  font-size: 0.82rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--border);
}
.auth-option-email {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}
.auth-option-email:hover { color: #fff; background: var(--green-d); }
.auth-email-icon { font-size: 1.35rem; }
.auth-email-login {
  margin-top: 4px;
  color: var(--green-d);
  font-size: 0.9rem;
  font-weight: 600;
}
.auth-legal {
  margin-top: 24px;
  color: var(--text-3);
  font-size: 0.78rem;
}
.auth-legal a { color: var(--text-2); text-decoration: underline; }
@media (min-width: 560px) {
  .auth-card { padding: 42px 44px 34px; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav {
    position: static; flex-direction: row; align-items: center; gap: 28px;
    max-height: none; overflow: visible; padding: 0; margin: 0 0 0 auto;
    background: transparent; border-bottom: none; box-shadow: none;
  }
  .nav-link { padding: 0; border-bottom: none; font-size: 0.88rem; }
  .topbar > .nav-cta { margin: 0 0 0 18px; }
}

/* ── Layout ────────────────────────────────────────────
   `main` widens as the viewport does, up to a sane cap, so wide screens
   use the extra space instead of leaving big empty gutters. Individual
   sections switch to side-by-side layouts once there's room for it. ── */
main { max-width: 1160px; margin: 0 auto; padding: 0 20px; flex: 1 0 auto; width: 100%; }
section { padding: 32px 0; }
@media (min-width: 640px)  { main { padding: 0 32px; } }
@media (min-width: 1024px) { main { padding: 0 48px; } }

/* ── Hero + video ──────────────────────────────────── */
.hero-grid { padding-top: 20px; text-align: center; }
.hero { padding: 0 0 28px; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 600; color: var(--green-d);
  background: var(--green-faint); border-radius: 100px; padding: 6px 14px;
  margin-bottom: 16px;
}

/* Customer/vendor toggle — appears in the hero AND above the steps below,
   both instances share state (see main.js), so picking one updates the
   hero subtext and the steps together instead of two disconnected pickers.
   Block + fit-content (not inline-flex) so it always starts on its own
   line below the badge, at every width. Defined here, before the
   900px media query below, so that query's margin override actually
   takes effect (equal-specificity rules that come later in the file
   win regardless of media query nesting). */
.audience-toggle {
  display: flex; width: fit-content; gap: 6px; background: var(--bg2);
  border-radius: 100px; padding: 4px; margin: 0 auto 20px;
}
.audience-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: inherit; font-size: 0.85rem; font-weight: 600;
  color: var(--text-2); padding: 10px 16px; min-height: 44px;
  border-radius: 100px; transition: all 0.15s var(--ease);
}
.audience-tab.active { background: var(--card); color: var(--green-d); box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1); }
.hero h1 {
  font-size: 2.3rem; font-weight: 800; line-height: 1.12; letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.hero h1 .accent { color: var(--green); }
.hero-sub {
  font-size: 1rem; color: var(--text-2); max-width: 440px;
  margin: 0 auto 22px; line-height: 1.55;
}
.hero-trust { font-size: 0.82rem; color: var(--text-3); margin-top: 14px; }
.texas-fancy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 4px 0 16px;
}
.tf-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  /* Fluid size so the full line always fits without wrapping or clipping:
     text renders ~22.166px wide per 1px of font-size, and the available
     track is (100vw - 64px) below the 640px breakpoint (40px page padding
     + 24px of .texas-fancy gaps) — solved for font-size, with a small
     safety margin, then capped at the original 1.15rem design size. */
  font-size: clamp(0.7rem, calc((100vw - 70px) / 22.166), 1.15rem);
  letter-spacing: 0.015em;
  white-space: normal;
  text-align: center;
  flex-shrink: 0;
  max-width: calc(100% - 24px); /* safety net: leaves room for the two 12px .texas-fancy gaps either side */
  background: linear-gradient(115deg, #b8860b 0%, #e6c158 45%, #b8860b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 10px rgba(212, 160, 23, 0.28));
}
.tf-line {
  flex: 1 1 28px;
  max-width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4a017);
}
.tf-line:last-child { background: linear-gradient(90deg, #d4a017, transparent); }

@media (min-width: 640px) {
  .hero h1 { font-size: 3rem; }
  .hero-sub { font-size: 1.08rem; }
  .tf-text { font-size: 1.35rem; }
}

/* At tablet-landscape and up, put the pitch and the video side by side
   instead of stacking — this is what actually fixes wide-screen dead
   space, rather than just capping a narrow column in the middle. */
@media (min-width: 900px) {
  .hero-grid {
    display: grid; grid-template-columns: 1.05fr 1fr;
    align-items: center; column-gap: 56px; row-gap: 0;
    padding: 56px 0;
  }
  .hero, .video-section { padding: 0; text-align: left; }
  .hero-sub { margin: 0 0 24px; max-width: 480px; }
  .hero h1 { font-size: 3.2rem; }
  .video-caption { text-align: left; }
  .video-frame { max-width: 100%; margin: 0; }

  /* Badge + toggle span the FULL grid width (both columns) and center
     within that, while the rest of the hero text (h1, subtext, CTA)
     stays left-aligned in its own column below. */
  .badge, .audience-toggle { display: flex; width: fit-content; grid-column: 1 / -1; justify-self: center; }
  .badge { grid-row: 1; }
  .audience-toggle { grid-row: 2; }
  .hero { grid-column: 1; grid-row: 3; }
  .video-section { grid-column: 2; grid-row: 3; }
  .texas-fancy { justify-content: flex-start; }
}

/* ── Video ─────────────────────────────────────────── */
.video-section { padding: 8px 0 32px; text-align: center; }
.video-caption {
  font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-3); margin-bottom: 12px;
}
.video-frame {
  max-width: 480px; margin: 0 auto;
  border-radius: var(--r); overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  border: 1px solid var(--border);
  background: #000;
}
.video-frame video { width: 100%; display: block; aspect-ratio: 854 / 480; }

/* ── How it works ──────────────────────────────────── */
/* ── Before / After section ── */
.before-after {
  text-align: center;
  padding: 40px 0 32px;
}
.before-after h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; }
.before-after-sub { color: var(--text-2); font-size: 0.95rem; margin-bottom: 20px; }
.before-after-img {
  width: 100%;
  max-width: 860px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(15,23,42,0.10);
  display: block;
  margin: 0 auto;
}

.how { text-align: center; }
.how h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 16px; }

.steps {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin: 0 auto 18px; max-width: 780px;
}
.step {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 16px 8px; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.step:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08); }
.step-icon {
  font-size: 1.3rem; color: var(--green); background: var(--green-faint);
  border-radius: 10px; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 10px;
}
.step h3 { font-size: 0.85rem; font-weight: 700; margin-bottom: 4px; }
.step p { font-size: 0.74rem; color: var(--text-3); line-height: 1.35; }
.how-trust { font-size: 0.78rem; color: var(--text-3); }

/* ── Deal preview card — illustrative only; shows what the AI Smart
   Match badge + live join progress will look like once real deals are
   displayed. No live deal browsing exists yet. ── */
.deal-preview { max-width: 360px; margin: 4px auto 18px; }
.deal-preview-label {
  font-size: 0.72rem; color: var(--text-3); text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 8px;
}
.deal-card {
  display: flex; gap: 12px; align-items: flex-start; text-align: left;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r);
  padding: 14px 16px; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.deal-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08); }
.deal-card-icon {
  font-size: 1.3rem; color: var(--green); background: var(--green-faint);
  border-radius: 10px; width: 38px; height: 38px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.deal-card-body { flex: 1; min-width: 0; }
.deal-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.deal-card-top h4 { font-size: 0.9rem; font-weight: 700; }
.deal-card-badge {
  display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0;
  font-size: 0.68rem; font-weight: 600; color: var(--green-d);
  background: var(--green-faint); border-radius: 20px; padding: 3px 8px;
}
.deal-card-badge .icon { font-size: 0.85rem; }
.deal-card-meta {
  display: flex; align-items: center; gap: 3px;
  font-size: 0.76rem; color: var(--text-3); margin: 3px 0 10px;
}
.deal-card-meta .icon { font-size: 0.9rem; }
.deal-card-progress-track {
  height: 5px; border-radius: 3px; background: var(--bg2); overflow: hidden;
}
.deal-card-progress-fill { display: block; height: 100%; width: 60%; background: var(--green); border-radius: 3px; }
.deal-card-progress-label { display: block; font-size: 0.72rem; color: var(--text-3); margin-top: 5px; }

@media (min-width: 640px) {
  .how h2 { font-size: 1.6rem; }
  .step { padding: 20px 12px; }
  .step-icon { font-size: 1.5rem; width: 44px; height: 44px; margin-bottom: 12px; }
  .step h3 { font-size: 0.95rem; }
  .step p { font-size: 0.82rem; }
}
@media (min-width: 900px) {
  .how { padding: 12px 0 48px; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 24px; }
  .step { padding: 28px 20px; }
}

/* ── FAQ ───────────────────────────────────────────── */
.faq { max-width: 620px; margin: 0 auto; padding: 8px 0 36px; text-align: center; }
.faq h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 14px; }
@media (min-width: 640px) { .faq h2 { font-size: 1.6rem; } }
.faq-list { text-align: left; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 4px 16px; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.faq-item:hover { border-color: var(--green); box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06); }
.faq-item summary {
  cursor: pointer; list-style: none; font-size: 0.9rem; font-weight: 600;
  padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.1rem; color: var(--text-3); flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { font-size: 0.85rem; color: var(--text-2); line-height: 1.55; padding-bottom: 14px; }

/* ── Rollout — the initial launch geography, signals a deliberate
   expansion plan rather than a single city. Kept as light as the old
   About blurb it replaces in this spot: one heading, a row of chips,
   one trailing note. ── */
.rollout {
  max-width: 620px; margin: 0 auto; padding: 8px 0 36px;
  text-align: center;
}
.rollout h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 14px; }
.city-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 12px; }
.city-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.82rem; font-weight: 600; color: var(--green-d);
  background: var(--green-faint); border-radius: 100px; padding: 6px 14px;
  transition: background 0.15s var(--ease);
}
.city-chip:hover { background: rgba(0, 179, 119, 0.18); }
.city-chip .icon { font-size: 0.95rem; }
.rollout-note { font-size: 0.8rem; color: var(--text-3); }

/* ── Real Deals Section ─────────────────────────────── */
.real-deals {
  text-align: center;
  padding: 48px 20px 40px;
}
.real-deals h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.real-deals-sub { color: var(--text-2); font-size: 0.95rem; margin-bottom: 28px; }
.deals-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  margin-bottom: 24px;
  max-width: 100%;
}
.deals-loading, .deals-empty-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 20px;
  color: var(--text-3);
}
.deals-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
}
.deals-empty .icon {
  font-size: 3rem;
  color: var(--text-3);
  margin-bottom: 12px;
}
.deals-empty h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.deals-empty p {
  color: var(--text-2);
  margin-bottom: 24px;
}
.deals-cta-container {
  text-align: center;
  margin-top: 24px;
}
.real-deal-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
  overflow-wrap: anywhere;
}
.real-deal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.deal-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.deal-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.deal-card-provider {
  font-size: 0.8rem;
  color: var(--text-3);
  margin-bottom: 4px;
}
.deal-prices {
  display: flex;
  gap: 8px;
  align-items: center;
}
.deal-price-regular {
  font-size: 0.75rem;
  color: var(--text-3);
  text-decoration: line-through;
}
.deal-price-discounted {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
}
.deal-members-needed {
  font-size: 0.75rem;
  color: var(--text-3);
}
.deal-join-button {
  display: block;
  text-align: center;
  text-decoration: none;
  width: 100%;
  padding: 8px 12px;
  background: var(--green-faint);
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
  margin-top: 4px;
}
.deal-join-button:hover {
  background: var(--green);
  color: #fff;
}

/* ── Trust Section ──────────────────────────────────── */
.trust-section {
  text-align: center;
  padding: 48px 20px 40px;
  background: var(--bg2);
}
.trust-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 28px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.trust-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px 18px;
  text-align: center;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.trust-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.trust-icon {
  font-size: 2.2rem;
  color: var(--green);
  display: block;
  margin-bottom: 12px;
}
.trust-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.trust-card p {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.6;
}
.trust-card a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--green);
}
.trust-card a:hover {
  color: var(--green-d);
  border-bottom-color: var(--green-d);
}

/* ── App Download Section ───────────────────────────── */
.app-section {
  text-align: center;
  padding: 48px 20px 40px;
}
.app-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.app-section-sub {
  color: var(--text-2);
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.app-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.app-badges a {
  display: inline-block;
  transition: transform 0.15s var(--ease);
}
.app-badges a:hover {
  transform: translateY(-2px);
}
.app-badges img {
  height: 40px;
  width: auto;
}
.app-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}
.app-feature {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-align: center;
}
.app-feature .icon {
  font-size: 2rem;
  color: var(--green);
  display: block;
  margin-bottom: 12px;
}
.app-feature h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.app-feature p {
  font-size: 0.8rem;
  color: var(--text-2);
}

/* ── CTA Section ─────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 48px 20px 40px;
}
.cta-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 32px;
}
.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}
.cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, var(--green-faint), rgba(0, 179, 119, 0.05));
  border: 2px solid var(--green);
  border-radius: var(--r);
  text-align: center;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.cta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 179, 119, 0.15);
}
.cta-icon {
  font-size: 2.5rem;
  color: var(--green);
  margin-bottom: 16px;
}
.cta-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.cta-card p {
  font-size: 0.9rem;
  color: var(--text-2);
  margin-bottom: 20px;
  line-height: 1.6;
}
.cta-card .btn {
  margin-top: auto;
}

/* ── Legal pages (Privacy / Terms / Contact) ──────────── */
.legal-page { max-width: 640px; margin: 0 auto; padding: 40px 20px 60px; }
.legal-page-back {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.85rem; font-weight: 600; color: var(--text-2);
  margin-bottom: 18px; text-decoration: none;
}
.legal-page-back:hover { color: var(--green-d); }
.legal-page h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.legal-page .legal-updated { font-size: 0.8rem; color: var(--text-3); margin-bottom: 24px; }
.legal-page h2 { font-size: 1.05rem; font-weight: 700; margin: 28px 0 8px; }
.legal-page p { font-size: 0.9rem; color: var(--text-2); line-height: 1.65; margin-bottom: 10px; }
.legal-page ul { margin: 8px 0 10px 20px; }
.legal-page li { font-size: 0.9rem; color: var(--text-2); line-height: 1.65; margin-bottom: 6px; }
.legal-page a { text-decoration: underline; }
.legal-page .legal-note {
  font-size: 0.8rem; color: var(--text-3); font-style: italic;
}
.legal-page .about-closing { margin-top: 28px; text-align: center; font-size: 1rem; color: var(--text); }

/* ══════════════════════════════════════════════════════
   USA Location Map Styles
═══════════════════════════════════════════════════════ */

.location-map-section {
  max-width: 1200px;
  margin: 60px auto 50px;
  padding: 0 20px;
}

.location-map-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  text-align: center;
}

.map-section-description {
  text-align: center;
  color: var(--text-2);
  font-size: 1rem;
  margin-bottom: 8px;
}

.map-status {
  min-height: 1.4em;
  margin: 0 0 20px;
  text-align: center;
  color: var(--text-2);
}

.map-status[data-state="error"] {
  color: #a12622;
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.map-attribution {
  font-size: 0.75rem;
  color: #64748b;
  text-align: right;
  margin-top: 6px;
  margin-right: 2px;
  line-height: 1.4;
}

.map-attribution a {
  color: #64748b;
  text-decoration: none;
}

.map-attribution a:hover {
  color: #0f172a;
  text-decoration: underline;
}

.map-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.map-container .leaflet-container {
  height: 100% !important;
  width: 100% !important;
}

.map-legend {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: white;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  z-index: 1000;
  font-size: 0.85rem;
  font-family: 'Outfit', sans-serif;
  min-width: 150px;
  pointer-events: auto;
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--text);
}

.map-legend-item:last-child {
  margin-bottom: 0;
}

.map-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.map-legend-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}

/* Leaflet cluster styles - removed inline styling conflicts */

/* Leaflet marker popups - professional styling */
.location-popup-wrapper.leaflet-popup {
  margin-bottom: 0;
}

.location-popup-wrapper .leaflet-popup-content-wrapper {
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  font-family: 'Outfit', sans-serif;
  color: #0f172a;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.location-popup-wrapper .leaflet-popup-content {
  margin: 0;
  padding: 0;
}

.location-popup {
  padding: 14px 16px;
  font-family: 'Outfit', sans-serif;
}

.popup-header {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.popup-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.popup-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
}

.popup-dot {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  margin-right: 2px;
}

.popup-dot.members {
  color: #10b981;
}

.popup-dot.partners {
  color: #1e40af;
}

.popup-dot.deals {
  color: #d97706;
}

.popup-label {
  font-weight: 600;
  color: #475569;
  min-width: 80px;
}

.popup-value {
  font-weight: 700;
  color: #0f172a;
}

.location-popup-wrapper .leaflet-popup-tip {
  background: white;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 -2px 4px rgba(15, 23, 42, 0.08);
}

.location-popup-wrapper .leaflet-popup-close-button {
  color: #64748b;
  font-size: 18px;
  font-weight: 300;
  padding: 0 4px;
  line-height: 1;
  top: 10px;
  right: 10px;
  width: auto;
  height: auto;
}

.location-popup-wrapper .leaflet-popup-close-button:hover {
  color: #0f172a;
}

.custom-marker-icon {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.15));
}

.custom-marker-icon:hover {
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.25));
}

.cluster-marker {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  .location-map-section {
    margin: 40px auto 50px;
    padding: 0 15px;
  }

  .location-map-section h2 {
    font-size: 1.5rem;
  }

  .map-section-description {
    font-size: 0.95rem;
  }

  .map-wrapper {
    height: 400px;
  }

  .map-legend {
    bottom: 15px;
    left: 15px;
    font-size: 0.8rem;
    padding: 10px 12px;
  }

  .map-legend-color {
    width: 10px;
    height: 10px;
  }

  .map-attribution {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .location-map-section {
    margin: 30px auto 35px;
  }

  .location-map-section h2 {
    font-size: 1.25rem;
  }

  .map-section-description {
    font-size: 0.9rem;
  }

  .map-wrapper {
    height: 300px;
  }

  .map-legend {
    bottom: 12px;
    left: 12px;
    font-size: 0.75rem;
    padding: 8px 10px;
  }

  .map-legend-color {
    width: 8px;
    height: 8px;
  }
}
  margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--border);
}
.legal-page .contact-email {
  display: inline-block; margin-top: 6px; font-size: 0.95rem; font-weight: 600;
}
.legal-page-cta { margin-top: 20px; width: auto; }

/* ── Team section (about.html) — wider than the narrow legal-page reading
   column, since a 12-person grid needs more horizontal room. ── */
.team { max-width: 940px; margin: 0 auto; padding: 8px 20px 60px; text-align: center; }
.team h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 28px; }
.team-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 16px;
}
.team-member { display: flex; flex-direction: column; align-items: center; }
.team-name { font-size: 0.86rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.team-role { font-size: 0.74rem; color: var(--text-3); line-height: 1.3; }

@media (min-width: 640px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
}
@media (min-width: 900px) {
  .team-grid { grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
}

/* ── Responsive adjustments for new sections ──────── */
@media (min-width: 640px) {
  .deals-container { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { gap: 24px; }
  .cta-grid { gap: 28px; }
  .app-features { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .deals-container { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .trust-grid { gap: 28px; }
  .cta-grid { grid-template-columns: 1fr 1fr; }
  .app-badges img { height: 50px; }
}
