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

  :root {
    --cream: #F8F4ED;
    --cream-dark: #EDE6D6;
    --green-deep: #1A3A28;
    --green-mid: #2D6A4F;
    --green-bright: #52B788;
    --green-light: #D8F3DC;
    --amber: #D4A017;
    --amber-light: #FEF3C7;
    --amber-dark: #92400E;
    --bark: #5C3D2E;
    --bark-light: #C9A882;
    --text-dark: #1A1A16;
    --text-mid: #4A4A3A;
    --text-muted: #7A7A6A;
    --white: #FFFFFF;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    overflow-x: hidden;
  }

  /* ── NAV ── */
  /* Scoped to #mainNav specifically — using a bare `nav` selector would
     hoist every inner-page nav (feed tabs, profile tabs, group scope,
     admin nav, trade-step rail, legal nav) to the top of the viewport
     and stretch them across the full width. Don't widen this selector. */
  #mainNav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 4rem;
    background: rgba(248,244,237,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(90,60,40,0.08);
    transition: box-shadow 0.3s;
  }
  #mainNav.scrolled { box-shadow: 0 4px 24px rgba(30,60,30,0.10); }
  .nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem; font-weight: 700;
    color: var(--green-deep); text-decoration: none;
  }
  .nav-logo-leaf {
    width: 32px; height: 32px;
    background: var(--green-mid);
    border-radius: 50% 50% 50% 10%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: white; flex-shrink: 0;
    transform: rotate(-15deg);
  }
  .nav-links { display: flex; gap: 2.2rem; list-style: none; }
  .nav-links a {
    text-decoration: none; font-size: 0.9rem; font-weight: 400;
    color: var(--text-mid); letter-spacing: 0.01em;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--green-mid); }
  .nav-cta {
    background: var(--green-deep); color: white;
    padding: 0.55rem 1.4rem; border-radius: 100px;
    text-decoration: none; font-size: 0.875rem; font-weight: 500;
    transition: background 0.2s, transform 0.15s;
  }
  .nav-cta:hover { background: var(--green-mid); transform: translateY(-1px); }

  /* ── HERO ── */
  .hero {
    min-height: 100vh;
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; gap: 0;
    padding: 8rem 4rem 5rem;
    position: relative; overflow: hidden;
  }
  .hero-bg-circle {
    position: absolute; border-radius: 50%;
    pointer-events: none;
  }
  .hero-bg-circle-1 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(82,183,136,0.12), transparent 70%);
    top: -200px; right: -100px;
    animation: pulse-slow 8s ease-in-out infinite;
  }
  .hero-bg-circle-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(212,160,23,0.10), transparent 70%);
    bottom: 0; left: 200px;
    animation: pulse-slow 10s ease-in-out infinite reverse;
  }
  @keyframes pulse-slow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
  }
  .hero-content { position: relative; z-index: 2; }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--green-light); color: var(--green-deep);
    padding: 0.4rem 1rem; border-radius: 100px;
    font-size: 0.8rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fade-up 0.6s ease both;
  }
  .hero-badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green-mid); flex-shrink: 0;
  }
  .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 700; line-height: 1.12;
    color: var(--green-deep);
    margin-bottom: 1.2rem;
    animation: fade-up 0.7s ease 0.1s both;
  }
  .hero-title em {
    font-style: italic; color: var(--green-mid);
    position: relative;
  }
  .hero-title em::after {
    content: '';
    position: absolute; left: 0; bottom: -2px; right: 0; height: 3px;
    background: var(--amber); border-radius: 2px;
  }
  .hero-sub {
    font-size: 1.1rem; color: var(--text-mid); line-height: 1.7;
    max-width: 520px; margin-bottom: 2.2rem;
    animation: fade-up 0.7s ease 0.2s both;
  }
  .hero-actions {
    display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
    animation: fade-up 0.7s ease 0.3s both;
  }
  .btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--green-deep); color: white;
    padding: 0.85rem 2rem; border-radius: 100px;
    text-decoration: none; font-size: 0.95rem; font-weight: 500;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(26,58,40,0.25);
  }
  .btn-primary:hover { background: var(--green-mid); transform: translateY(-2px); box-shadow: 0 6px 28px rgba(26,58,40,0.30); }
  .btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--green-deep); font-size: 0.95rem; font-weight: 500;
    text-decoration: none; padding: 0.85rem 0;
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.2s;
  }
  .btn-secondary:hover { border-color: var(--green-mid); }
  .btn-arrow { font-size: 1.2rem; transition: transform 0.2s; }
  .btn-secondary:hover .btn-arrow { transform: translateX(4px); }

  /* hero visual */
  .hero-visual {
    position: relative; z-index: 2;
    display: flex; justify-content: center; align-items: center;
    animation: fade-in 1s ease 0.4s both;
  }
  .hero-phone-wrap {
    position: relative;
    width: 280px; height: 560px;
  }
  .hero-phone {
    width: 280px; height: 560px;
    background: var(--green-deep);
    border-radius: 40px;
    box-shadow: 0 30px 80px rgba(26,58,40,0.30), 0 0 0 6px rgba(255,255,255,0.08);
    overflow: hidden; position: relative;
    display: flex; flex-direction: column;
  }
  .phone-notch {
    width: 90px; height: 20px; background: var(--green-deep);
    border-radius: 0 0 14px 14px; margin: 10px auto 0;
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    z-index: 10;
  }
  .phone-screen {
    flex: 1; background: var(--cream);
    margin: 14px 8px 8px; border-radius: 30px;
    overflow: hidden; display: flex; flex-direction: column;
  }
  .phone-header {
    background: var(--green-deep); padding: 1rem 1.2rem 0.8rem;
    color: white;
  }
  .phone-header-title {
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em;
  }
  .phone-header-sub { font-size: 0.65rem; opacity: 0.7; margin-top: 2px; }
  .phone-feed { flex: 1; padding: 0.6rem; overflow: hidden; display: flex; flex-direction: column; gap: 0.5rem; }
  .phone-card {
    background: white; border-radius: 12px;
    padding: 0.7rem; border: 1px solid rgba(0,0,0,0.06);
    display: flex; gap: 10px; align-items: flex-start;
  }
  .phone-card-img {
    width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
  }
  .phone-card-title { font-size: 0.7rem; font-weight: 500; color: var(--text-dark); line-height: 1.3; }
  .phone-card-meta { font-size: 0.6rem; color: var(--text-muted); margin-top: 2px; }
  .phone-card-price {
    margin-top: 4px; font-size: 0.65rem; font-weight: 500;
    color: var(--green-mid); display: inline-flex; align-items: center; gap: 4px;
  }
  .phone-tag {
    display: inline-block; background: var(--green-light);
    color: var(--green-deep); font-size: 0.55rem; padding: 1px 6px;
    border-radius: 100px; margin-top: 3px; font-weight: 500;
  }
  .phone-nav {
    background: white; padding: 0.5rem 0.8rem;
    display: flex; justify-content: space-around; align-items: center;
    border-top: 1px solid rgba(0,0,0,0.06);
  }
  .phone-nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .phone-nav-icon { font-size: 1.1rem; }
  .phone-nav-label { font-size: 0.5rem; color: var(--text-muted); }
  .phone-nav-item.active .phone-nav-icon { color: var(--green-mid); }
  .phone-nav-item.active .phone-nav-label { color: var(--green-mid); }

  /* floating badges on phone */
  .float-badge {
    position: absolute; background: white;
    border-radius: 12px; padding: 0.5rem 0.8rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    display: flex; align-items: center; gap: 8px;
    font-size: 0.75rem; font-weight: 500;
    animation: float-badge 4s ease-in-out infinite;
    white-space: nowrap;
  }
  .float-badge-1 {
    top: 80px; left: -90px;
    animation-delay: 0s;
  }
  .float-badge-2 {
    bottom: 140px; right: -90px;
    animation-delay: 2s;
  }
  @keyframes float-badge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }
  .float-icon { font-size: 1.2rem; }
  .float-text { color: var(--text-dark); }
  .float-sub { font-size: 0.65rem; color: var(--text-muted); font-weight: 400; margin-top: 1px; }

  @keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* ── STATS BAR ── */
  .stats-bar {
    background: var(--green-deep);
    padding: 2rem 4rem;
    display: flex; gap: 0; justify-content: center; flex-wrap: wrap;
  }
  .stat-item {
    flex: 1; min-width: 160px;
    display: flex; flex-direction: column; align-items: center;
    padding: 1rem 2rem;
    border-right: 1px solid rgba(255,255,255,0.12);
  }
  .stat-item:last-child { border-right: none; }
  .stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem; font-weight: 700; color: var(--green-bright);
    line-height: 1;
  }
  .stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.65); margin-top: 6px; text-align: center; }

  /* ── SECTION BASE ── */
  section { padding: 6rem 4rem; }
  .section-label {
    font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--green-mid); margin-bottom: 0.8rem;
    display: flex; align-items: center; gap: 8px;
  }
  .section-label::before {
    content: ''; display: inline-block;
    width: 24px; height: 2px; background: var(--green-mid); border-radius: 2px;
  }
  .section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 700;
    color: var(--green-deep); line-height: 1.18;
    max-width: 560px;
  }
  .section-title em { font-style: italic; color: var(--green-mid); }
  .section-body {
    font-size: 1.05rem; color: var(--text-mid); line-height: 1.75;
    max-width: 560px; margin-top: 1rem;
  }

  /* ── PROBLEM SECTION ── */
  /* `minmax(0, 1fr)` (not bare `1fr`) is critical for mobile: with `1fr`,
     grid items default to `min-width: auto` and can grow past the column's
     1fr width if their intrinsic content is wider (long words, fixed-width
     images, illustration mockups). That was causing 758px-wide cards on
     a 375px viewport and forcing horizontal scroll on the homepage. */
  .problem-section {
    background: var(--cream); display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5rem; align-items: center;
  }
  .problem-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
  .problem-card {
    background: white; border-radius: 16px; padding: 1.4rem;
    border: 1px solid rgba(90,60,40,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative; overflow: hidden;
  }
  .problem-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(26,58,40,0.10); }
  .problem-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: var(--green-bright);
  }
  .problem-card-icon { font-size: 1.8rem; margin-bottom: 0.7rem; }
  .problem-card-title { font-size: 0.9rem; font-weight: 500; color: var(--green-deep); margin-bottom: 0.4rem; }
  .problem-card-text { font-size: 0.8rem; color: var(--text-muted); line-height: 1.55; }

  /* ── FEATURES SECTION ── */
  .features-section { background: var(--green-deep); }
  .features-section .section-label { color: var(--green-bright); }
  .features-section .section-label::before { background: var(--green-bright); }
  .features-section .section-title { color: white; }
  .features-section .section-body { color: rgba(255,255,255,0.65); }
  .features-grid {
    /* Locked to 3-up at desktop so the 6 cards render as a clean 3×2 grid
       (was an auto-fit that spilled to 4 wide + 2 dangling on the second
       row). Steps down to 2-up on mid screens, 1-up on phones. */
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem; margin-top: 3.5rem;
  }
  @media (max-width: 960px) {
    .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr; }
  }
  .feature-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 20px; padding: 2rem;
    transition: background 0.2s, transform 0.2s;
    position: relative; overflow: hidden;
  }
  .feature-card:hover { background: rgba(255,255,255,0.10); transform: translateY(-4px); }
  .feature-card-accent {
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
  }
  .feature-card-body {
    display: block; color: inherit; text-decoration: none;
  }
  .feature-card-body:hover .feature-title { color: var(--green-bright); }
  .feature-icon-wrap {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin-bottom: 1.2rem;
  }
  .feature-title { font-size: 1.05rem; font-weight: 500; color: white; margin-bottom: 0.6rem; transition: color 0.15s; }
  .feature-text { font-size: 0.875rem; color: rgba(255,255,255,0.60); line-height: 1.65; }
  .feature-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 1.2rem; }
  .feature-tag {
    font-size: 0.7rem; padding: 3px 10px; border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.20); color: rgba(255,255,255,0.70);
    text-decoration: none; transition: background 0.15s, color 0.15s, border-color 0.15s;
  }
  a.feature-tag:hover { background: rgba(255,255,255,0.10); color: #fff; border-color: rgba(255,255,255,0.40); }

  /* ── HOW IT WORKS ── */
  .how-section { background: var(--cream-dark); }
  .steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; margin-top: 4rem; }
  .step {
    padding: 2rem; position: relative;
    border-right: 1px dashed rgba(90,60,40,0.15);
  }
  .step:last-child { border-right: none; }
  .step-number {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem; font-weight: 700; line-height: 1;
    color: rgba(45,106,79,0.12); margin-bottom: 0.5rem;
    position: absolute; top: 1.5rem; right: 1.5rem;
  }
  .step-icon { font-size: 2rem; margin-bottom: 1rem; }
  .step-title { font-size: 1rem; font-weight: 500; color: var(--green-deep); margin-bottom: 0.5rem; }
  .step-text { font-size: 0.85rem; color: var(--text-mid); line-height: 1.6; }
  .step-connector {
    position: absolute; top: 50%; right: -1px;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--green-mid); border: 3px solid var(--cream-dark);
    transform: translateY(-50%) translateX(50%); z-index: 2;
  }
  .step:last-child .step-connector { display: none; }

  /* ── LISTING SHOWCASE ── */
  .listings-section {
    background: var(--cream);
    display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
  }
  .listings-scroll {
    display: grid; gap: 1rem;
    max-height: 560px; overflow: hidden; position: relative;
  }
  .listings-scroll::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 100px;
    background: linear-gradient(to bottom, transparent, var(--cream));
    pointer-events: none;
  }
  .listing-card {
    background: white; border-radius: 16px;
    display: flex; gap: 1rem; padding: 1rem;
    border: 1px solid rgba(90,60,40,0.08);
    transition: box-shadow 0.2s;
  }
  .listing-card:hover { box-shadow: 0 8px 24px rgba(26,58,40,0.10); }
  .listing-emoji {
    width: 64px; height: 64px; flex-shrink: 0;
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
  }
  .listing-info { flex: 1; }
  .listing-name { font-size: 0.95rem; font-weight: 500; color: var(--text-dark); }
  .listing-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 3px; }
  .listing-actions { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
  .listing-price { font-size: 0.9rem; font-weight: 500; color: var(--green-mid); }
  .listing-badge {
    font-size: 0.68rem; padding: 3px 8px; border-radius: 100px; font-weight: 500;
  }
  .badge-sell { background: var(--green-light); color: var(--green-deep); }
  .badge-trade { background: var(--amber-light); color: var(--amber-dark); }
  .badge-donate { background: #EEF2FF; color: #3730A3; }
  .badge-free { background: #FDF2F8; color: #831843; }
  .listing-grower { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
  .verified-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); display: inline-block; }

  /* ── MAP SECTION ── */
  .map-section {
    background: var(--green-light);
    text-align: center; padding: 6rem 4rem;
  }
  .map-section .section-title { max-width: 100%; margin: 0 auto; }
  .map-section .section-body { max-width: 560px; margin: 1rem auto 3rem; }
  .map-mockup {
    max-width: 800px; margin: 0 auto;
    background: white; border-radius: 24px;
    box-shadow: 0 20px 60px rgba(26,58,40,0.15);
    overflow: hidden; border: 1px solid rgba(90,60,40,0.08);
  }
  .map-header {
    background: var(--green-deep); padding: 1.2rem 1.5rem;
    display: flex; align-items: center; gap: 1rem;
  }
  .map-search {
    flex: 1; background: rgba(255,255,255,0.1);
    border-radius: 100px; padding: 0.5rem 1rem;
    color: rgba(255,255,255,0.7); font-size: 0.85rem;
    display: flex; align-items: center; gap: 8px;
  }
  .map-filter-btns { display: flex; gap: 6px; }
  .map-filter-btn {
    background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8);
    padding: 4px 12px; border-radius: 100px; font-size: 0.75rem;
    border: none; cursor: pointer;
  }
  .map-filter-btn.active { background: var(--green-bright); color: var(--green-deep); }

  /* Demo-note pill above the interactive map. */
  .map-demo-note {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--green-light); color: var(--green-deep);
    border-radius: 100px; padding: 0.4rem 0.95rem;
    font-size: 0.82rem; font-weight: 500;
    margin: 1rem auto 0;
    max-width: 600px;
    line-height: 1.4;
  }

  /* Quick-search chip row — sits between the dark search header and the map body. */
  .map-quick-chips {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: var(--cream);
    border-bottom: 1px solid rgba(90,60,40,0.06);
  }
  .map-quick-chips-label {
    font-size: 0.74rem; color: var(--text-muted);
    margin-right: 0.2rem; font-weight: 500;
  }
  .map-quick-chip {
    background: #fff; color: var(--text-dark);
    border: 1px solid rgba(90,60,40,0.12);
    border-radius: 100px; padding: 0.3rem 0.75rem;
    font-size: 0.78rem; cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
  }
  .map-quick-chip:hover {
    background: var(--green-light);
    border-color: var(--green-mid);
    color: var(--green-deep);
  }

  /* Hidden state for filtered-out pins — animation keeps the demo feel alive. */
  .map-pin.map-pin-hidden {
    opacity: 0;
    transform: scale(0.7);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  .map-pin {
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  /* Empty state inside the map body when filters hide everything.
     `[hidden]` rule explicitly overrides display:flex so the native
     `hidden` attribute actually hides this element. */
  .map-empty-state {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.65);
    text-align: center;
    font-size: 0.92rem; color: var(--text-mid);
    padding: 1rem;
    z-index: 5;
  }
  .map-empty-state[hidden] { display: none; }
  .map-body {
    position: relative; height: 340px;
    background: #E8F4E8;
    overflow: hidden;
  }
  .map-svg-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
  }
  .map-pin {
    position: absolute;
    display: flex; flex-direction: column; align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
  }
  .map-pin:hover { transform: scale(1.1); }
  .map-pin-bubble {
    background: var(--green-deep); color: white;
    border-radius: 12px 12px 12px 2px;
    padding: 5px 10px; font-size: 0.7rem; font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  .map-pin-tail {
    width: 2px; height: 8px; background: var(--green-deep);
  }
  .map-pin-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green-deep); border: 2px solid white;
  }
  .map-pin.amber .map-pin-bubble { background: var(--amber); color: var(--amber-dark); }
  .map-pin.amber .map-pin-tail { background: var(--amber); }
  .map-pin.amber .map-pin-dot { background: var(--amber); }
  .map-pin.red .map-pin-bubble { background: #E74C3C; }
  .map-pin.red .map-pin-tail { background: #E74C3C; }
  .map-pin.red .map-pin-dot { background: #E74C3C; }
  .map-pin.blue .map-pin-bubble { background: #2563EB; color: #fff; }
  .map-pin.blue .map-pin-tail { background: #2563EB; }
  .map-pin.blue .map-pin-dot { background: #2563EB; }
  .map-pin.teal .map-pin-bubble { background: #0D9488; color: #fff; }
  .map-pin.teal .map-pin-tail { background: #0D9488; }
  .map-pin.teal .map-pin-dot { background: #0D9488; }
  .map-pin.orange .map-pin-bubble { background: #EA580C; color: #fff; }
  .map-pin.orange .map-pin-tail { background: #EA580C; }
  .map-pin.orange .map-pin-dot { background: #EA580C; }
  .map-pin.purple .map-pin-bubble { background: #7C3AED; color: #fff; }
  .map-pin.purple .map-pin-tail { background: #7C3AED; }
  .map-pin.purple .map-pin-dot { background: #7C3AED; }
  /* Boosted pin — gold outline + drop-shadow, layered on top of any color. */
  .map-pin.boosted .map-pin-bubble {
    box-shadow: 0 0 0 2px #F59E0B, 0 3px 10px rgba(0,0,0,0.15);
    font-weight: 600;
  }
  .map-legend {
    padding: 1rem 1.5rem;
    display: flex; gap: 1.5rem; flex-wrap: wrap; border-top: 1px solid rgba(0,0,0,0.06);
  }
  .legend-item {
    display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-mid);
  }
  .legend-dot { width: 10px; height: 10px; border-radius: 50%; }

  /* ── TRUST SECTION ── */
  .trust-section {
    background: white; display: grid;
    grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
  }
  .trust-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .trust-badge {
    background: var(--cream); border-radius: 16px; padding: 1.5rem;
    display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem;
    border: 1px solid rgba(90,60,40,0.08);
    transition: transform 0.2s;
  }
  .trust-badge:hover { transform: translateY(-2px); }
  .trust-badge-icon { font-size: 1.8rem; }
  .trust-badge-title { font-size: 0.9rem; font-weight: 500; color: var(--green-deep); }
  .trust-badge-text { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

  /* ── COMMUNITY ── */
  .community-section { background: var(--cream); text-align: center; }
  .community-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem; margin-top: 3.5rem; text-align: left;
  }
  .community-card {
    background: white; border-radius: 20px; padding: 2rem;
    border: 1px solid rgba(90,60,40,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .community-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(26,58,40,0.10); }
  .community-emoji { font-size: 2rem; margin-bottom: 1rem; }
  .community-title { font-size: 1rem; font-weight: 500; color: var(--green-deep); margin-bottom: 0.5rem; }
  .community-text { font-size: 0.85rem; color: var(--text-mid); line-height: 1.65; }

  /* ── PRICING ── */
  .pricing-section { background: var(--cream-dark); }
  .pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem; margin-top: 3.5rem;
  }
  .pricing-card {
    background: white; border-radius: 24px; padding: 2.2rem;
    border: 1.5px solid rgba(90,60,40,0.10);
    display: flex; flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
  }
  .pricing-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(26,58,40,0.10); }
  .pricing-card.featured {
    background: var(--green-deep); border-color: var(--green-deep);
    color: white; transform: scale(1.02);
  }
  .pricing-card.featured:hover { transform: scale(1.02) translateY(-4px); }
  .pricing-popular {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--amber); color: var(--amber-dark);
    font-size: 0.7rem; font-weight: 500; padding: 4px 14px;
    border-radius: 100px; letter-spacing: 0.05em; text-transform: uppercase;
  }
  .pricing-plan { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
  .pricing-card.featured .pricing-plan { color: rgba(255,255,255,0.6); }
  .pricing-price {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem; font-weight: 700; color: var(--green-deep); line-height: 1;
    margin-bottom: 0.3rem;
  }
  .pricing-card.featured .pricing-price { color: var(--green-bright); }
  .pricing-period { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.5rem; }
  .pricing-card.featured .pricing-period { color: rgba(255,255,255,0.55); }
  .pricing-divider { border: none; border-top: 1px solid rgba(90,60,40,0.08); margin-bottom: 1.5rem; }
  .pricing-card.featured .pricing-divider { border-top-color: rgba(255,255,255,0.12); }
  .pricing-features { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; margin-bottom: 1.5rem; padding: 0; }
  /* New layout: each <li> wraps a <details> accordion. The flex-row look
     (check + label) now lives on `summary` so the whole row is the click
     target. Native disclosure marker hidden in favor of our `›` chevron. */
  .pricing-features li { display: block; font-size: 0.875rem; color: var(--text-mid); }
  .pricing-card.featured .pricing-features li { color: rgba(255,255,255,0.75); }
  .pricing-feature { display: block; }
  .pricing-feature > summary {
    display: flex; align-items: flex-start; gap: 10px;
    cursor: pointer; padding: 4px 0;
    list-style: none;            /* Firefox */
    user-select: none;
    border-radius: 6px;
    transition: background 0.15s;
  }
  .pricing-feature > summary::-webkit-details-marker { display: none; } /* Safari */
  .pricing-feature > summary:hover { background: rgba(90,60,40,0.04); }
  .pricing-card.featured .pricing-feature > summary:hover { background: rgba(255,255,255,0.06); }
  .pricing-feature-label { flex: 1; }
  .pricing-feature-chevron {
    color: var(--text-muted);
    font-size: 1.2rem; line-height: 0.9;
    transition: transform 0.18s ease;
    flex: 0 0 auto;
    align-self: center;
    opacity: 0.6;
  }
  .pricing-feature[open] > summary > .pricing-feature-chevron { transform: rotate(90deg); }
  /* Force-hide the detail when details is closed. The default UA hide
     behavior on <details> non-summary children was being broken by our
     `.pricing-feature-detail { ... }` cascade (height stayed at 138px in
     the closed state). Explicit `display: none` restores correct UX. */
  .pricing-feature:not([open]) > .pricing-feature-detail { display: none; }
  .pricing-feature-detail {
    padding: 6px 6px 10px 26px;  /* left padding aligns with text after the ✓ */
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
    animation: pricing-feature-reveal 0.18s ease;
  }
  @keyframes pricing-feature-reveal {
    from { opacity: 0; transform: translateY(-3px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  /* Dark "Most Popular" card overrides — keep the accordion legible on the
     dark-green background. */
  .pricing-card.featured .pricing-feature-detail { color: rgba(255,255,255,0.62); }
  .pricing-card.featured .pricing-feature-chevron { color: rgba(255,255,255,0.55); }
  .pricing-check { color: var(--green-mid); font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
  .pricing-card.featured .pricing-check { color: var(--green-bright); }
  .pricing-btn {
    display: block; text-align: center;
    background: var(--green-light); color: var(--green-deep);
    padding: 0.8rem; border-radius: 100px;
    text-decoration: none; font-size: 0.9rem; font-weight: 500;
    transition: background 0.2s;
  }
  .pricing-btn:hover { background: var(--green-bright); color: white; }
  .pricing-card.featured .pricing-btn {
    background: var(--green-bright); color: var(--green-deep);
  }
  .pricing-card.featured .pricing-btn:hover { background: white; }

  /* ── IMPACT ── */
  .impact-section {
    background: var(--green-deep);
    text-align: center; padding: 6rem 4rem;
  }
  .impact-section .section-label { color: var(--green-bright); justify-content: center; }
  .impact-section .section-label::before { background: var(--green-bright); }
  .impact-section .section-title { color: white; max-width: 100%; margin: 0 auto; }
  .impact-metrics {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem; max-width: 900px; margin: 4rem auto 0;
  }
  .impact-metric { text-align: center; }
  .impact-metric-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
  .impact-metric-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem; font-weight: 700; color: var(--green-bright);
    line-height: 1;
  }
  .impact-metric-label { font-size: 0.8rem; color: rgba(255,255,255,0.60); margin-top: 6px; }

  /* ── CTA ── */
  .cta-section {
    background: var(--cream); text-align: center; padding: 7rem 4rem;
  }
  .cta-section .section-title { max-width: 100%; margin: 0 auto; font-size: clamp(2.2rem, 4vw, 3.2rem); }
  .cta-section .section-body { margin: 1rem auto 2.5rem; text-align: center; }
  .cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
  .cta-input-wrap {
    display: flex; gap: 0; max-width: 440px; width: 100%;
    background: white; border-radius: 100px;
    border: 1.5px solid rgba(45,106,79,0.25); overflow: hidden;
    box-shadow: 0 4px 16px rgba(26,58,40,0.10);
  }
  .cta-input {
    flex: 1; border: none; outline: none; padding: 0.85rem 1.4rem;
    font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
    color: var(--text-dark); background: transparent;
  }
  .cta-input::placeholder { color: var(--text-muted); }
  .cta-submit {
    background: var(--green-deep); color: white; border: none;
    padding: 0.75rem 1.5rem; font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem; font-weight: 500; cursor: pointer;
    border-radius: 0 100px 100px 0;
    transition: background 0.2s;
  }
  .cta-submit:hover { background: var(--green-mid); }

  /* ── FOOTER ──
     5 columns: wide brand + 4 link groups (Explore / Donate / Learn / Support).
     The grid template was previously 4-col which forced Support to wrap onto
     a second row under the brand, creating dead space at bottom-right.
     Padding tightened from 4rem→2.5rem, gap from 3rem→2rem for less air. */
  footer {
    background: var(--green-deep); padding: 2.5rem 2rem;
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 2rem;
  }
  .footer-brand { }
  .footer-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem; font-weight: 700;
    color: white; text-decoration: none; margin-bottom: 1rem;
  }
  .footer-logo-leaf {
    width: 28px; height: 28px; background: var(--green-bright);
    border-radius: 50% 50% 50% 10%; display: flex; align-items: center;
    justify-content: center; font-size: 0.9rem; transform: rotate(-15deg);
  }
  .footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.55); line-height: 1.6; max-width: 240px; }
  .footer-social { display: flex; gap: 10px; margin-top: 1.5rem; }
  .footer-social-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.10);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; text-decoration: none; color: white;
    transition: background 0.2s;
  }
  .footer-social-btn:hover { background: var(--green-mid); }
  .footer-col h4 {
    font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em;
    text-transform: uppercase; color: rgba(255,255,255,0.45);
    margin-bottom: 1.2rem;
  }
  .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
  .footer-col ul a {
    text-decoration: none; font-size: 0.875rem;
    color: rgba(255,255,255,0.65); transition: color 0.2s;
  }
  .footer-col ul a:hover { color: var(--green-bright); }
  .footer-bottom {
    background: var(--green-deep); border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 4rem;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.8rem; color: rgba(255,255,255,0.40);
    flex-wrap: wrap; gap: 1rem;
  }
  .footer-bottom a { color: rgba(255,255,255,0.40); text-decoration: none; }
  .footer-bottom a:hover { color: rgba(255,255,255,0.70); }

  /* ── TESTIMONIALS ── */
  .testimonials-section { background: var(--cream-dark); }
  .testimonials-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem; margin-bottom: 3rem;
  }
  .testimonial-card {
    background: white; border-radius: 20px; padding: 2rem;
    border: 1px solid rgba(90,60,40,0.08);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex; flex-direction: column; gap: 1rem;
  }
  .testimonial-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(26,58,40,0.10); }
  .testimonial-quote {
    font-family: 'Playfair Display', serif;
    font-size: 4rem; line-height: 0.8; color: var(--green-bright);
    font-weight: 700;
  }
  .testimonial-text {
    font-size: 0.9rem; color: var(--text-mid); line-height: 1.7; flex: 1;
    font-style: italic;
  }
  .testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
  .testimonial-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 600; flex-shrink: 0;
  }
  .testimonial-name { font-size: 0.875rem; font-weight: 500; color: var(--text-dark); }
  .testimonial-role { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
  .testimonial-stars { margin-left: auto; font-size: 0.75rem; flex-shrink: 0; }
  .grower-spotlight {
    background: white; border-radius: 24px; overflow: hidden;
    border: 1px solid rgba(90,60,40,0.08);
    box-shadow: 0 8px 32px rgba(26,58,40,0.08);
  }
  .spotlight-inner { padding: 2.5rem; }
  .spotlight-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--amber-light); color: var(--amber-dark);
    font-size: 0.78rem; font-weight: 500; padding: 4px 14px;
    border-radius: 100px; letter-spacing: 0.04em; margin-bottom: 1.5rem;
  }
  .spotlight-content { display: flex; gap: 2rem; align-items: flex-start; }
  .spotlight-avatar {
    width: 80px; height: 80px; background: var(--green-light);
    border-radius: 20px; display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; flex-shrink: 0;
  }
  .spotlight-name { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 600; color: var(--green-deep); }
  .spotlight-title { font-size: 0.78rem; color: var(--green-mid); margin: 4px 0 0.8rem; font-weight: 500; }
  .spotlight-bio { font-size: 0.875rem; color: var(--text-mid); line-height: 1.65; max-width: 520px; margin-bottom: 1.5rem; }
  .spotlight-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
  .spotlight-stat { display: flex; flex-direction: column; gap: 2px; }
  .spotlight-stat-num { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--green-deep); line-height: 1; }
  .spotlight-stat-label { font-size: 0.75rem; color: var(--text-muted); }
  @media (max-width: 700px) {
    .spotlight-content { flex-direction: column; }
  }

  /* ── AI SECTION ── */
  .ai-section { background: white; }
  .ai-features-wrap {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    margin-top: 3.5rem; align-items: start;
  }
  .ai-demo-card {
    background: var(--cream); border-radius: 20px; overflow: hidden;
    border: 1px solid rgba(90,60,40,0.10);
    box-shadow: 0 8px 32px rgba(26,58,40,0.08);
  }
  .ai-demo-header {
    background: var(--green-deep); padding: 1.2rem 1.5rem;
    display: flex; align-items: center; gap: 1rem; color: white;
  }
  .ai-demo-icon { font-size: 1.8rem; }
  .ai-demo-title { font-size: 0.95rem; font-weight: 500; }
  .ai-demo-sub { font-size: 0.75rem; opacity: 0.6; margin-top: 2px; }
  .ai-demo-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
  .ai-photo-preview {
    background: white; border-radius: 12px; padding: 1rem;
    display: flex; align-items: center; gap: 12px;
    border: 1px dashed rgba(90,60,40,0.20);
  }
  .ai-photo-placeholder { font-size: 2.5rem; }
  .ai-photo-label { font-size: 0.8rem; color: var(--text-muted); font-family: 'DM Mono', monospace; }
  .ai-generating { display: flex; align-items: center; gap: 10px; }
  .ai-dot-row { display: flex; gap: 5px; }
  .ai-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green-mid);
    animation: ai-pulse 1.4s ease-in-out infinite;
  }
  .ai-dot:nth-child(2) { animation-delay: 0.2s; }
  .ai-dot:nth-child(3) { animation-delay: 0.4s; }
  @keyframes ai-pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
  }
  .ai-gen-label { font-size: 0.8rem; color: var(--text-muted); }
  .ai-result { background: white; border-radius: 12px; overflow: hidden; }
  .ai-result-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.6rem 1rem; border-bottom: 1px solid rgba(90,60,40,0.06);
    gap: 1rem;
  }
  .ai-result-row:last-child { border-bottom: none; }
  .ai-result-label { font-size: 0.75rem; color: var(--text-muted); flex-shrink: 0; }
  .ai-result-val { font-size: 0.8rem; color: var(--text-dark); text-align: right; }
  .ai-apply-btn {
    background: var(--green-deep); color: white; border: none;
    padding: 0.75rem; border-radius: 10px; font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem; font-weight: 500; cursor: pointer; width: 100%;
    transition: background 0.2s;
  }
  .ai-apply-btn:hover { background: var(--green-mid); }
  .ai-features-list { display: flex; flex-direction: column; gap: 1.5rem; }
  .ai-feature-item { display: flex; gap: 1rem; align-items: flex-start; }
  .ai-feature-icon {
    width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  }
  .ai-feature-title { font-size: 0.95rem; font-weight: 500; color: var(--green-deep); margin-bottom: 0.3rem; }
  .ai-feature-text { font-size: 0.83rem; color: var(--text-mid); line-height: 1.6; }
  @media (max-width: 900px) {
    .ai-features-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  }

  /* ── DONATION SECTION ── */
  .donation-section { background: var(--cream); }
  .donation-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
    align-items: start;
  }
  .donation-org-list { display: flex; flex-direction: column; gap: 1rem; }
  .donation-org-card {
    background: white; border-radius: 16px; padding: 1.2rem 1.4rem;
    border: 1px solid rgba(90,60,40,0.08);
    display: flex; align-items: center; gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .donation-org-card:hover { transform: translateX(4px); box-shadow: 0 6px 20px rgba(26,58,40,0.08); }
  .donation-org-icon { font-size: 1.8rem; flex-shrink: 0; }
  .donation-org-info { flex: 1; }
  .donation-org-name { font-size: 0.9rem; font-weight: 500; color: var(--green-deep); }
  .donation-org-meta { font-size: 0.77rem; color: var(--text-mid); margin-top: 2px; }
  .donation-org-hours { font-size: 0.73rem; color: var(--text-muted); margin-top: 3px; }
  .donation-org-btn {
    background: var(--green-light); color: var(--green-deep);
    font-size: 0.78rem; font-weight: 500; padding: 6px 14px;
    border-radius: 100px; cursor: pointer; flex-shrink: 0;
    transition: background 0.2s;
  }
  .donation-org-card:hover .donation-org-btn { background: var(--green-bright); color: white; }
  .donation-impact-panel {
    background: var(--green-deep); border-radius: 20px; padding: 2rem;
    display: flex; flex-direction: column; gap: 1.2rem;
  }
  .donation-impact-title { font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.6); letter-spacing: 0.05em; text-transform: uppercase; }
  .donation-impact-bar-wrap { display: flex; flex-direction: column; gap: 6px; }
  .dib-label { display: flex; justify-content: space-between; font-size: 0.8rem; color: rgba(255,255,255,0.75); }
  .dib-bar { background: rgba(255,255,255,0.12); border-radius: 100px; height: 6px; overflow: hidden; }
  .dib-fill { height: 100%; border-radius: 100px; transition: width 1.5s ease; }
  .donation-totals { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.10); }
  .donation-total-item { text-align: center; }
  .donation-total-num { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; line-height: 1; }
  .donation-total-label { font-size: 0.68rem; color: rgba(255,255,255,0.55); margin-top: 4px; }
  .donation-cta-mini { margin-top: 0.5rem; }
  @media (max-width: 900px) {
    .donation-grid { grid-template-columns: 1fr; }
  }

  /* ── EVENTS SECTION ── */
  .events-section { background: var(--cream-dark); }
  .events-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1.5rem;
  }
  .event-card {
    background: white; border-radius: 20px; overflow: hidden;
    border: 1px solid rgba(90,60,40,0.08);
    display: flex; flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .event-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(26,58,40,0.12); }
  .event-card-top {
    padding: 2rem 1.5rem 1.5rem; position: relative;
    display: flex; align-items: flex-end;
  }
  .event-card.event-featured .event-card-top { padding: 3rem 1.5rem 1.5rem; }
  .event-emoji { font-size: 2.5rem; }
  .event-featured-badge {
    position: absolute; top: 1rem; right: 1rem;
    background: var(--amber); color: var(--amber-dark);
    font-size: 0.7rem; font-weight: 500; padding: 3px 10px;
    border-radius: 100px;
  }
  .event-card-body { padding: 1.2rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 0.6rem; }
  .event-tag {
    display: inline-block; font-size: 0.68rem; font-weight: 500;
    padding: 3px 10px; border-radius: 100px; width: fit-content;
  }
  .event-title { font-size: 1rem; font-weight: 600; color: var(--green-deep); line-height: 1.3; }
  .event-card.event-featured .event-title { font-size: 1.15rem; }
  .event-desc { font-size: 0.8rem; color: var(--text-mid); line-height: 1.55; flex: 1; }
  .event-meta { display: flex; gap: 0.8rem; font-size: 0.72rem; color: var(--text-muted); flex-wrap: wrap; }
  .event-btn {
    display: block; background: var(--green-deep); color: white;
    text-decoration: none; text-align: center; padding: 0.65rem;
    border-radius: 10px; font-size: 0.83rem; font-weight: 500;
    transition: background 0.2s; margin-top: 0.5rem;
  }
  .event-btn:hover { background: var(--green-mid); }
  @media (max-width: 1100px) {
    .events-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 600px) {
    .events-grid { grid-template-columns: 1fr; }
  }

  /* ── FRUGALIE SECTION ── */
  .frugalie-section { background: var(--green-deep); padding: 6rem 4rem; }
  .frugalie-inner { max-width: 1100px; margin: 0 auto; }
  .frugalie-cards {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; margin-top: 3.5rem;
  }
  .frugalie-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px; padding: 2rem;
    display: flex; flex-direction: column; gap: 0.6rem;
    transition: background 0.2s, transform 0.2s;
  }
  .frugalie-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-4px); }
  .frugalie-card-highlight {
    background: rgba(82,183,136,0.15);
    border-color: rgba(82,183,136,0.40);
  }
  .frugalie-card-highlight:hover { background: rgba(82,183,136,0.22); }
  .frugalie-card-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
  .frugalie-card-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 600; color: white; }
  .frugalie-card-sub { font-size: 0.75rem; color: var(--green-bright); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
  .frugalie-card-text { font-size: 0.875rem; color: rgba(255,255,255,0.60); line-height: 1.65; margin-top: 0.3rem; flex: 1; }
  .frugalie-card-unlock {
    display: inline-block; background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.55); font-size: 0.72rem; padding: 4px 12px;
    border-radius: 100px; margin-top: 0.5rem; width: fit-content;
  }
  .frugalie-card-highlight .frugalie-card-unlock { background: rgba(82,183,136,0.25); color: var(--green-bright); }
  @media (max-width: 800px) {
    .frugalie-cards { grid-template-columns: 1fr; }
    .frugalie-section { padding: 4rem 1.5rem; }
  }

  /* ── APP SECTION ── */
  .app-section { background: var(--cream); padding: 6rem 4rem; }
  .app-inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 5rem;
    align-items: center;
  }
  .app-badges { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
  .app-badge-btn {
    display: flex; align-items: center; gap: 10px;
    background: var(--green-deep); color: white;
    padding: 0.8rem 1.4rem; border-radius: 14px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    border: 1.5px solid transparent;
  }
  .app-badge-btn:hover { background: var(--green-mid); transform: translateY(-2px); }
  .app-badge-icon { font-size: 1.5rem; flex-shrink: 0; }
  .app-badge-sub { font-size: 0.65rem; opacity: 0.7; }
  .app-badge-name { font-size: 0.95rem; font-weight: 500; }
  .app-features-mini {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 1.8rem;
  }
  .app-feat-mini { font-size: 0.83rem; color: var(--text-mid); display: flex; align-items: center; gap: 6px; }
  .app-phones { position: relative; height: 520px; display: flex; align-items: center; justify-content: center; }
  .app-phone {
    width: 220px; height: 440px;
    background: var(--green-deep); border-radius: 32px;
    box-shadow: 0 24px 60px rgba(26,58,40,0.25), 0 0 0 5px rgba(255,255,255,0.06);
    overflow: hidden; position: absolute;
  }
  .app-phone-back {
    transform: rotate(-10deg) translateX(-60px) translateY(20px);
    z-index: 1; opacity: 0.85;
  }
  .app-phone-front {
    transform: rotate(4deg) translateX(40px);
    z-index: 2;
  }
  .app-phone-screen {
    margin: 10px 6px 6px; border-radius: 24px;
    background: var(--cream); overflow: hidden;
    display: flex; flex-direction: column; height: calc(100% - 16px);
  }
  .app-phone-screen-map { background: #E2EED6; }
  @media (max-width: 900px) {
    .app-inner { grid-template-columns: 1fr; }
    .app-phones { height: 340px; margin-top: 2rem; }
    .app-phone { width: 180px; height: 360px; }
    .app-section { padding: 4rem 1.5rem; }
  }

  /* ── SOCIAL FEED ── */
  .feed-section { background: white; }
  .feed-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; justify-content: center; }
  .feed-tab {
    background: var(--cream); color: var(--text-mid);
    border: 1px solid rgba(90,60,40,0.10); border-radius: 100px;
    padding: 0.5rem 1.1rem; font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem; cursor: pointer; transition: all 0.2s;
  }
  .feed-tab:hover { background: var(--green-light); color: var(--green-deep); }
  .feed-tab.active { background: var(--green-deep); color: white; border-color: var(--green-deep); }
  .feed-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: auto auto; gap: 1.5rem;
  }
  .feed-post {
    background: var(--cream); border-radius: 20px; overflow: hidden;
    border: 1px solid rgba(90,60,40,0.08); display: flex; flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .feed-post:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(26,58,40,0.10); }
  .fp-large { grid-row: span 2; }
  .feed-post-img { height: 180px; display: flex; align-items: center; justify-content: center; }
  .feed-post-img-sm { height: 110px; }
  .fp-large .feed-post-img { height: 240px; }
  .feed-post-emoji-big { font-size: 3.5rem; }
  .feed-post-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; gap: 0.7rem; }
  .feed-post-user { display: flex; align-items: center; gap: 10px; }
  .feed-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; }
  .feed-username { font-size: 0.875rem; font-weight: 500; color: var(--text-dark); }
  .feed-verified { color: var(--green-mid); font-size: 0.75rem; }
  .feed-location { font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }
  .feed-post-tag-pill { margin-left: auto; font-size: 0.65rem; font-weight: 500; padding: 3px 9px; border-radius: 100px; flex-shrink: 0; }
  .feed-post-text { font-size: 0.83rem; color: var(--text-mid); line-height: 1.65; flex: 1; }
  .feed-post-listing-preview { background: var(--green-light); border-radius: 10px; padding: 0.6rem 0.9rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: var(--green-deep); gap: 8px; flex-wrap: wrap; }
  .feed-view-link { color: var(--green-mid); font-weight: 500; cursor: pointer; white-space: nowrap; }
  .feed-post-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: auto; }
  .feed-action-btn { background: white; border: 1px solid rgba(90,60,40,0.10); border-radius: 100px; padding: 5px 12px; font-size: 0.75rem; cursor: pointer; transition: all 0.15s; font-family: 'DM Sans', sans-serif; color: var(--text-mid); display: flex; align-items: center; gap: 4px; }
  .feed-action-btn:hover { background: var(--cream-dark); }
  .feed-action-btn.liked { background: #FDF2F8; border-color: #F9A8D4; color: #9D174D; }
  .feed-save-btn.saved { background: var(--amber-light); border-color: var(--amber); color: var(--amber-dark); }
  .feed-post.hidden { display: none; }
  @media (max-width: 960px) { .feed-grid { grid-template-columns: 1fr 1fr; } .fp-large { grid-row: span 1; } }
  @media (max-width: 600px) { .feed-grid { grid-template-columns: 1fr; } }

  /* ── CALENDAR ── */
  .calendar-section { background: var(--cream-dark); }
  .cal-tabs { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 2.5rem; flex-wrap: wrap; }
  .cal-season-btn { background: white; border: 1px solid rgba(90,60,40,0.12); color: var(--text-mid); padding: 0.6rem 1.4rem; border-radius: 100px; font-family: 'DM Sans', sans-serif; font-size: 0.875rem; cursor: pointer; transition: all 0.2s; }
  .cal-season-btn:hover { border-color: var(--green-mid); color: var(--green-mid); }
  .cal-season-btn.active { background: var(--green-deep); color: white; border-color: var(--green-deep); }
  .cal-season { display: none; }
  .cal-season.active { display: block; animation: fade-up 0.4s ease both; }
  .cal-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .cal-month { background: white; border-radius: 16px; overflow: hidden; border: 1px solid rgba(90,60,40,0.08); }
  .cal-month-header { background: var(--green-deep); color: white; padding: 0.8rem 1.2rem; font-size: 0.9rem; font-weight: 500; font-family: 'Playfair Display', serif; }
  .cal-items { padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
  .cal-item { font-size: 0.8rem; padding: 0.4rem 0.7rem; border-radius: 8px; border-left: 3px solid transparent; }
  .cal-plant { background: rgba(82,183,136,0.10); border-left-color: var(--green-bright); color: var(--green-deep); }
  .cal-harvest { background: rgba(212,160,23,0.10); border-left-color: var(--amber); color: var(--amber-dark); }
  .cal-market { background: rgba(116,179,206,0.12); border-left-color: #74B3CE; color: #1E4A6B; }
  .cal-legend { display: flex; gap: 2rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
  .cal-legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.83rem; color: var(--text-mid); }
  .cal-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
  @media (max-width: 700px) { .cal-months { grid-template-columns: 1fr; } }

  /* ── PARTNERS ── */
  .partners-section { background: white; }
  .partners-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.5rem; }
  .partners-cat { background: var(--cream); border-radius: 20px; padding: 1.5rem; border: 1px solid rgba(90,60,40,0.08); }
  .partners-cat-header { display: flex; align-items: center; gap: 10px; margin-bottom: 1.2rem; }
  .partners-cat-icon { font-size: 1.5rem; }
  .partners-cat-title { font-size: 0.9rem; font-weight: 500; color: var(--green-deep); }
  .partners-list { display: flex; flex-direction: column; gap: 0.6rem; }
  .partner-chip { background: white; border-radius: 10px; padding: 0.6rem 0.9rem; font-size: 0.82rem; color: var(--text-mid); border: 1px solid rgba(90,60,40,0.08); display: flex; align-items: center; gap: 8px; transition: transform 0.15s, box-shadow 0.15s; }
  .partner-chip:hover { transform: translateX(3px); box-shadow: 0 2px 8px rgba(26,58,40,0.08); }
  .partner-chip-icon { flex-shrink: 0; }
  .partner-cta { margin-top: 3rem; background: var(--green-light); border-radius: 20px; padding: 2rem 2.5rem; border: 1px solid rgba(82,183,136,0.30); }
  .partner-cta-inner { display: flex; align-items: center; gap: 2rem; justify-content: space-between; flex-wrap: wrap; }
  .partner-cta-title { font-size: 1.1rem; font-weight: 500; color: var(--green-deep); margin-bottom: 0.4rem; }
  .partner-cta-sub { font-size: 0.85rem; color: var(--text-mid); max-width: 500px; }

  /* ── FAQ ── */
  .faq-section { background: var(--cream); padding: 6rem 4rem; }
  .faq-category-btn { background: white; border: 1px solid rgba(90,60,40,0.10); color: var(--text-mid); padding: 0.65rem 1.2rem; border-radius: 10px; font-size: 0.875rem; cursor: pointer; transition: all 0.2s; user-select: none; }
  .faq-category-btn:hover { border-color: var(--green-mid); color: var(--green-mid); }
  .faq-category-btn.active { background: var(--green-deep); color: white; border-color: var(--green-deep); }
  .faq-list { display: flex; flex-direction: column; gap: 0.6rem; }
  .faq-item { background: white; border-radius: 14px; overflow: hidden; border: 1px solid rgba(90,60,40,0.08); }
  .faq-item.hidden { display: none; }
  .faq-q { width: 100%; background: none; border: none; cursor: pointer; padding: 1.1rem 1.3rem; display: flex; justify-content: space-between; align-items: center; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500; color: var(--text-dark); text-align: left; gap: 1rem; transition: background 0.15s; }
  .faq-q:hover { background: var(--cream); }
  .faq-icon { font-size: 1.2rem; color: var(--green-mid); flex-shrink: 0; line-height: 1; transition: transform 0.25s; }
  .faq-item.active .faq-q { background: var(--green-light); color: var(--green-deep); }
  .faq-item.active .faq-icon { transform: rotate(45deg); }
  .faq-a { max-height: 0; overflow: hidden; transition: max-height 0.38s ease; }
  .faq-a.open { max-height: 400px; }
  .faq-a p { padding: 0 1.3rem 1.2rem; font-size: 0.875rem; color: var(--text-mid); line-height: 1.7; }
  @media (max-width: 900px) { .faq-section { padding: 4rem 1.5rem; } .faq-section > div { grid-template-columns: 1fr !important; gap: 2rem; } }

  /* ── NEWSLETTER ── */
  .newsletter-section { background: var(--green-deep); padding: 5rem 4rem; }
  .newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
  .newsletter-icon { font-size: 3rem; margin-bottom: 1rem; }
  .newsletter-title { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: white; margin-bottom: 0.8rem; }
  .newsletter-sub { font-size: 0.925rem; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 1.8rem; }
  .newsletter-form { display: flex; margin-bottom: 0.8rem; }
  .newsletter-input { flex: 1; border: none; outline: none; background: rgba(255,255,255,0.12); color: white; padding: 0.85rem 1.2rem; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; border-radius: 100px 0 0 100px; border: 1.5px solid rgba(255,255,255,0.2); border-right: none; }
  .newsletter-input::placeholder { color: rgba(255,255,255,0.45); }
  .newsletter-btn { background: var(--green-bright); color: var(--green-deep); border: none; padding: 0.85rem 1.5rem; border-radius: 0 100px 100px 0; font-family: 'DM Sans', sans-serif; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
  .newsletter-btn:hover { background: white; }
  .newsletter-fine { font-size: 0.75rem; color: rgba(255,255,255,0.40); }
  .newsletter-preview { background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.20); }
  .newsletter-preview-header { background: var(--cream-dark); padding: 1.2rem 1.5rem; border-bottom: 1px solid rgba(90,60,40,0.10); }
  .newsletter-preview-label { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 4px; }
  .newsletter-preview-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 600; color: var(--green-deep); }
  .newsletter-preview-body { padding: 1.2rem 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; }
  .nl-section-head { font-size: 0.75rem; font-weight: 500; color: var(--green-mid); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.2rem; }
  .nl-item { font-size: 0.82rem; color: var(--text-mid); line-height: 1.55; }
  .nl-listing-row { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-mid); padding: 3px 0; border-bottom: 1px solid rgba(90,60,40,0.06); }
  .nl-listing-price { font-weight: 500; color: var(--green-mid); }
  @media (max-width: 900px) { .newsletter-inner { grid-template-columns: 1fr; gap: 2.5rem; } .newsletter-section { padding: 4rem 1.5rem; } }

  /* ── TRADE FLOW ── */
  .trade-section { background: var(--cream-dark); }
  .trade-flow-wrap { max-width: 820px; margin: 0 auto; }
  .trade-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 2rem; flex-wrap: wrap; gap: 0.3rem; }
  .trade-step { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; padding: 0.6rem 1rem; border-radius: 12px; transition: background 0.2s; }
  .trade-step:hover { background: rgba(45,106,79,0.08); }
  .trade-step:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 2px; }
  .trade-step.active .trade-step-num { background: var(--green-deep); color: white; }
  .trade-step.active .trade-step-label { color: var(--green-deep); font-weight: 500; }
  /* "Done" — step is BEFORE the current one. Hide the number text via
     font-size:0, then render a check glyph from a pseudo-element. */
  .trade-step.done .trade-step-num { background: var(--green-mid); border-color: var(--green-mid); color: #fff; font-size: 0; }
  .trade-step.done .trade-step-num::before { content: '✓'; font-size: 0.9rem; font-weight: 700; }
  .trade-step.done .trade-step-label { color: var(--text-mid); }
  .trade-step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--cream); border: 2px solid var(--green-mid); color: var(--green-mid); font-size: 0.75rem; font-weight: 600; display: flex; align-items: center; justify-content: center; transition: background 0.2s, color 0.2s; }
  .trade-step-label { font-size: 0.72rem; color: var(--text-muted); text-align: center; white-space: nowrap; }
  .trade-step-arrow { color: var(--text-muted); font-size: 0.9rem; padding: 0 0.2rem; }
  .trade-demo { background: white; border-radius: 24px; border: 1px solid rgba(90,60,40,0.10); overflow: hidden; box-shadow: 0 8px 32px rgba(26,58,40,0.08); min-height: 280px; }
  .trade-panel { display: none; animation: fade-up 0.35s ease both; }
  .trade-panel.active { display: block; }
  .trade-panel-header { background: var(--green-deep); color: white; padding: 1rem 1.5rem; font-size: 0.9rem; font-weight: 500; }
  .trade-panel-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.2rem; }
  .trade-listing-card { display: flex; gap: 1rem; align-items: center; background: var(--cream); border-radius: 14px; padding: 1rem; border: 1px solid rgba(90,60,40,0.08); }
  .trade-listing-emoji { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0; }
  .trade-listing-title { font-size: 0.95rem; font-weight: 500; color: var(--text-dark); }
  .trade-listing-sub { font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; }
  .trade-listing-want { font-size: 0.8rem; color: var(--green-mid); margin-top: 5px; font-weight: 500; }
  .trade-demo-btn { background: var(--green-deep); color: white; border: none; padding: 0.8rem 1.5rem; border-radius: 100px; font-family: 'DM Sans', sans-serif; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: background 0.2s, transform 0.15s; align-self: flex-start; }
  .trade-demo-btn:hover { background: var(--green-mid); transform: translateY(-1px); }
  .trade-offer-row { display: flex; gap: 1rem; align-items: center; }
  .trade-offer-side { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
  .trade-offer-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
  .trade-offer-card { background: var(--cream); border-radius: 12px; padding: 0.9rem; border: 2px solid transparent; display: flex; gap: 10px; align-items: center; }
  .trade-offer-item { font-size: 0.875rem; font-weight: 500; color: var(--text-dark); }
  .trade-offer-qty { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
  .trade-swap-icon { font-size: 1.8rem; flex-shrink: 0; color: var(--green-mid); }
  .trade-note { background: var(--cream); border-radius: 10px; padding: 0.9rem; font-size: 0.83rem; color: var(--text-mid); line-height: 1.55; border-left: 3px solid var(--green-bright); }
  .trade-message { display: flex; gap: 12px; }
  .trade-msg-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; flex-shrink: 0; }
  .trade-msg-bubble { background: var(--cream); border-radius: 0 14px 14px 14px; padding: 0.9rem 1rem; flex: 1; }
  .trade-msg-name { font-size: 0.78rem; font-weight: 500; color: var(--green-deep); margin-bottom: 4px; }
  .trade-msg-text { font-size: 0.85rem; color: var(--text-mid); line-height: 1.55; }
  .trade-accept-banner { background: var(--green-light); border-radius: 10px; padding: 0.8rem 1rem; display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--green-deep); }
  .trade-accept-icon { font-size: 1.2rem; }
  .trade-meetup-card { background: var(--cream); border-radius: 14px; overflow: hidden; }
  .trade-meetup-row { display: flex; gap: 1rem; align-items: flex-start; padding: 0.7rem 1rem; border-bottom: 1px solid rgba(90,60,40,0.07); }
  .trade-meetup-row:last-child { border-bottom: none; }
  .tm-label { font-size: 0.78rem; color: var(--text-muted); flex-shrink: 0; min-width: 90px; }
  .tm-val { font-size: 0.85rem; color: var(--text-dark); font-weight: 500; }
  .trade-safety-tip { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; background: var(--amber-light); border-radius: 8px; padding: 0.7rem 0.9rem; }
  .trade-complete-banner { background: var(--green-light); border-radius: 14px; padding: 1.2rem; display: flex; gap: 1rem; align-items: center; }
  .trade-complete-icon { font-size: 2.5rem; }
  .trade-complete-title { font-size: 1rem; font-weight: 600; color: var(--green-deep); }
  .trade-complete-sub { font-size: 0.8rem; color: var(--text-mid); margin-top: 3px; }
  .trade-stars-wrap { display: flex; flex-direction: column; gap: 8px; }
  .trade-stars-label { font-size: 0.85rem; color: var(--text-mid); }
  .trade-stars { display: flex; gap: 6px; }
  .trade-star { font-size: 2rem; color: #D1D5DB; cursor: pointer; transition: color 0.15s, transform 0.1s; line-height: 1; }
  .trade-star:hover, .trade-star.filled { color: var(--amber); }
  .trade-star:hover { transform: scale(1.2); }
  .trade-badges-earned { display: flex; gap: 8px; flex-wrap: wrap; }
  .trade-badge-earned { background: var(--green-light); color: var(--green-deep); font-size: 0.78rem; font-weight: 500; padding: 5px 12px; border-radius: 100px; }

  /* ── INTERACTIVE TRADE DEMO ENHANCEMENTS ──
     Added when the demo became click-to-advance. The original demo just had
     "Next" buttons; this layer lets the user pick produce + meetup + leave a
     rating with comment, mirroring the real /trades/new + /messages/show
     + /reviews/new flows. */
  .trade-demo-hint {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--green-light); color: var(--green-deep);
    border-radius: 100px; padding: 0.4rem 0.95rem;
    font-size: 0.82rem; font-weight: 500;
    margin: 0 auto;
    animation: trade-hint-bob 2s ease-in-out infinite;
  }
  @keyframes trade-hint-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
  }

  .trade-demo-btn:disabled {
    background: rgba(45,106,79,0.25); color: rgba(255,255,255,0.7);
    cursor: not-allowed; transform: none;
  }
  .trade-demo-btn:disabled:hover { background: rgba(45,106,79,0.25); transform: none; }

  .trade-pick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.6rem;
  }
  .trade-pick-card {
    display: flex; align-items: center; gap: 0.7rem;
    background: var(--cream); border: 2px solid transparent;
    border-radius: 12px; padding: 0.75rem 0.85rem;
    cursor: pointer; text-align: left;
    font-family: inherit; color: inherit;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
  }
  .trade-pick-card:hover {
    border-color: var(--green-mid);
    transform: translateY(-1px);
  }
  .trade-pick-card.selected {
    border-color: var(--green-deep);
    background: var(--green-light);
    box-shadow: 0 0 0 1px var(--green-deep) inset;
  }
  .trade-pick-card.selected::after {
    content: '✓'; margin-left: auto; color: var(--green-deep);
    font-weight: 700; font-size: 1.1rem;
  }
  .trade-pick-emoji { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
  .trade-pick-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
  .trade-pick-name { font-size: 0.88rem; font-weight: 500; color: var(--text-dark); }
  .trade-pick-qty  { font-size: 0.74rem; color: var(--text-muted); }

  .trade-meetup-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

  .trade-offer-card-empty {
    background: rgba(90,60,40,0.04);
    border-color: rgba(90,60,40,0.10) !important;
    border-style: dashed !important;
  }

  .trade-note-label {
    font-size: 0.82rem; font-weight: 500; color: var(--text-mid);
    margin-top: 0.2rem;
  }
  .trade-note-input,
  .trade-review-input {
    width: 100%; box-sizing: border-box;
    background: var(--cream); border: 1px solid rgba(90,60,40,0.10);
    border-radius: 10px; padding: 0.7rem 0.9rem;
    font-family: 'DM Sans', sans-serif; font-size: 0.86rem;
    color: var(--text-dark); line-height: 1.5;
    resize: vertical;
  }
  .trade-note-input:focus,
  .trade-review-input:focus {
    outline: 2px solid var(--green-mid); outline-offset: 1px;
    border-color: var(--green-mid);
  }

  .trade-response-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
  .trade-response-btn {
    flex: 1; min-width: 130px;
    border: 1px solid transparent; border-radius: 100px;
    padding: 0.6rem 1rem; font-family: inherit; font-size: 0.85rem;
    font-weight: 500; cursor: pointer;
    transition: background 0.15s, transform 0.1s;
  }
  .trade-response-btn:hover { transform: translateY(-1px); }
  .trade-response-accept   { background: var(--green-deep); color: #fff; }
  .trade-response-accept:hover { background: var(--green-mid); }
  .trade-response-counter  { background: #FEF3C7; color: #92400E; border-color: #F5D478; }
  .trade-response-counter:hover { background: #FDE68A; }
  .trade-response-decline  { background: #FEE2E2; color: #991B1B; border-color: #FCA5A5; }
  .trade-response-decline:hover { background: #FCA5A5; color: #fff; }

  .trade-info-hint {
    background: var(--cream); border-left: 3px solid var(--green-bright);
    border-radius: 8px; padding: 0.6rem 0.85rem;
    font-size: 0.82rem; color: var(--text-mid); line-height: 1.55;
  }

  .trade-meetup-card-pretty { background: var(--cream); border-radius: 14px; overflow: hidden; }

  /* Override the bare star styling now that .trade-star is a <button>. */
  .trade-star {
    background: none; border: none; padding: 0;
    font-size: 2rem; color: #D1D5DB;
    cursor: pointer; line-height: 1;
    transition: color 0.15s, transform 0.1s;
  }
  .trade-star:hover, .trade-star.filled { color: var(--amber); }
  .trade-star:hover { transform: scale(1.2); }
  .trade-star:focus-visible { outline: 2px solid var(--green-mid); outline-offset: 2px; border-radius: 4px; }

  /* ── NEIGHBORHOOD SPOTTING ── */
  .spotting-section { background: var(--green-deep); padding: 6rem 4rem; }
  .spotting-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: start; }
  .spotting-section .section-label { color: var(--green-bright); }
  .spotting-section .section-label::before { background: var(--green-bright); }
  .spotting-section .section-title { color: white; }
  .spotting-section .section-body { color: rgba(255,255,255,0.65); }
  .spotting-types { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.5rem; }
  .spot-type-pill { font-size: 0.78rem; font-weight: 500; padding: 5px 12px; border-radius: 100px; }
  .spotting-rules { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 2rem; }
  .spot-rule { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: rgba(255,255,255,0.70); }
  .spot-rule-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
  .spotting-cards { display: flex; flex-direction: column; gap: 1rem; }
  .spot-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 18px; overflow: hidden; transition: background 0.2s, transform 0.2s; }
  .spot-card:hover { background: rgba(255,255,255,0.12); transform: translateX(6px); }
  .spot-card-top { padding: 1.2rem 1.4rem; display: flex; align-items: center; justify-content: space-between; }
  .spot-card-emoji { font-size: 2rem; }
  .spot-permission { font-size: 0.7rem; font-weight: 500; padding: 4px 10px; border-radius: 100px; }
  .spot-public { background: rgba(82,183,136,0.25); color: var(--green-bright); }
  .spot-private { background: rgba(212,160,23,0.25); color: #F6E05E; }
  .spot-garden { background: rgba(116,179,206,0.25); color: #90CDF4; }
  .spot-card-body { padding: 0 1.4rem 1.2rem; }
  .spot-card-title { font-size: 0.95rem; font-weight: 500; color: white; }
  .spot-card-loc { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-top: 3px; }
  .spot-card-season { font-size: 0.78rem; color: var(--green-bright); margin-top: 5px; }
  .spot-card-meta { font-size: 0.73rem; color: rgba(255,255,255,0.45); margin-top: 5px; }
  .spot-card-note { font-size: 0.78rem; color: rgba(255,255,255,0.60); margin-top: 8px; background: rgba(255,255,255,0.06); border-radius: 8px; padding: 6px 10px; line-height: 1.5; }
  @media (max-width: 900px) { .spotting-inner { grid-template-columns: 1fr; gap: 2.5rem; } .spotting-section { padding: 4rem 1.5rem; } }

  /* ── COMPARISON TABLE ── */
  .compare-section { background: white; }
  .compare-table-wrap { overflow-x: auto; margin-top: 0; border-radius: 20px; border: 1px solid rgba(90,60,40,0.10); box-shadow: 0 8px 32px rgba(26,58,40,0.07); }
  .compare-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
  .compare-table thead tr { background: var(--green-deep); color: white; }
  .compare-table th { padding: 1rem 1.2rem; text-align: left; font-weight: 500; font-size: 0.82rem; }
  .compare-table th.compare-mygrow { background: var(--green-mid); }
  .compare-table th.compare-feature-col { background: rgba(255,255,255,0.06); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
  .compare-table tbody tr { border-bottom: 1px solid rgba(90,60,40,0.07); transition: background 0.15s; }
  .compare-table tbody tr:last-child { border-bottom: none; }
  .compare-table tbody tr:hover { background: var(--cream); }
  .compare-table td { padding: 0.85rem 1.2rem; color: var(--text-mid); }
  .compare-table td.compare-mygrow { background: rgba(82,183,136,0.06); font-weight: 500; }
  .feature-name { color: var(--text-dark); font-weight: 500; font-size: 0.875rem; white-space: nowrap; }
  .c-yes { color: var(--green-mid); font-weight: 500; }
  .c-no { color: #F87171; }
  .c-maybe { color: var(--amber); }

  /* ── BLOG ── */
  .blog-section { background: var(--cream-dark); }
  .blog-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: auto auto; gap: 1.5rem; }
  .blog-card { background: white; border-radius: 20px; overflow: hidden; border: 1px solid rgba(90,60,40,0.08); display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
  .blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(26,58,40,0.10); }
  .blog-card-featured { grid-row: span 2; }
  .blog-card-img { height: 160px; display: flex; align-items: center; justify-content: center; position: relative; }
  .blog-card-img-sm { height: 100px; }
  .blog-card-featured .blog-card-img { height: 240px; }
  .blog-card-emoji-big { font-size: 3rem; }
  .blog-featured-tag { position: absolute; top: 12px; left: 12px; background: var(--amber); color: var(--amber-dark); font-size: 0.7rem; font-weight: 500; padding: 4px 10px; border-radius: 100px; }
  .blog-card-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; gap: 0.6rem; }
  .blog-meta { display: flex; align-items: center; gap: 8px; }
  .blog-cat { font-size: 0.68rem; font-weight: 500; padding: 3px 9px; border-radius: 100px; }
  .blog-read { font-size: 0.72rem; color: var(--text-muted); margin-left: auto; }
  .blog-title { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); line-height: 1.35; }
  .blog-card-featured .blog-title { font-size: 1.05rem; }
  .blog-excerpt { font-size: 0.8rem; color: var(--text-mid); line-height: 1.6; flex: 1; }
  .blog-author-row { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 0.8rem; border-top: 1px solid rgba(90,60,40,0.07); }
  .blog-author-avatar { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 600; flex-shrink: 0; }
  .blog-author-name { font-size: 0.78rem; font-weight: 500; color: var(--text-dark); }
  .blog-author-date { font-size: 0.7rem; color: var(--text-muted); }
  .blog-likes { margin-left: auto; font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
  @media (max-width: 960px) { .blog-grid { grid-template-columns: 1fr 1fr; } .blog-card-featured { grid-row: span 1; } }
  @media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

  /* ── ADMIN DASHBOARD ── */
  .admin-section { background: var(--cream); }
  .admin-mockup { display: grid; grid-template-columns: 200px 1fr; background: white; border-radius: 24px; border: 1px solid rgba(90,60,40,0.10); box-shadow: 0 16px 48px rgba(26,58,40,0.12); overflow: hidden; min-height: 480px; }
  .admin-sidebar { background: var(--green-deep); padding: 1.5rem 0; display: flex; flex-direction: column; }
  .admin-logo { font-family: 'Playfair Display', serif; font-size: 0.9rem; font-weight: 600; color: white; padding: 0 1.2rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.10); margin-bottom: 0.5rem; }
  /* Scoped to the marketing-page admin mockup — the real /admin shell uses
     its own .admin-nav rule lower in this file. */
  .admin-mockup .admin-nav { display: flex; flex-direction: column; }
  .admin-mockup .admin-nav-item { padding: 0.6rem 1.2rem; font-size: 0.8rem; color: rgba(255,255,255,0.60); cursor: pointer; transition: background 0.15s, color 0.15s; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
  .admin-mockup .admin-nav-item:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.90); }
  .admin-mockup .admin-nav-item.active { background: rgba(82,183,136,0.20); color: var(--green-bright); font-weight: 500; border-right: 3px solid var(--green-bright); }
  .admin-badge { background: #F87171; color: white; font-size: 0.62rem; padding: 2px 6px; border-radius: 100px; font-weight: 600; }
  .admin-main { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.2rem; background: var(--cream); overflow-x: auto; }
  .admin-topbar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid rgba(90,60,40,0.08); }
  .admin-topbar-title { font-size: 1rem; font-weight: 600; color: var(--green-deep); }
  .admin-topbar-date { font-size: 0.75rem; color: var(--text-muted); }
  .admin-stats-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.8rem; }
  .admin-stat-card { background: white; border-radius: 12px; padding: 0.9rem; border: 1px solid rgba(90,60,40,0.08); }
  .admin-stat-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; margin-bottom: 0.6rem; }
  .admin-stat-num { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--green-deep); line-height: 1.2; }
  .admin-stat-label { font-size: 0.68rem; color: var(--text-muted); margin-top: 2px; }
  .admin-stat-trend { font-size: 0.65rem; margin-top: 4px; }
  .trend-up { color: var(--green-mid); }
  .trend-down { color: #F87171; }
  .admin-bottom-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0.8rem; }
  .admin-chart-card, .admin-recent-card { background: white; border-radius: 12px; padding: 1rem; border: 1px solid rgba(90,60,40,0.08); }
  .admin-card-title { font-size: 0.8rem; font-weight: 500; color: var(--text-dark); margin-bottom: 0.8rem; display: flex; align-items: center; }
  .admin-chart { display: flex; align-items: flex-end; gap: 0.5rem; height: 80px; }
  .admin-bar-group { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; height: 100%; justify-content: flex-end; }
  .admin-bar { width: 100%; border-radius: 4px 4px 0 0; transition: height 0.8s ease; min-height: 4px; }
  .admin-bar-label { font-size: 0.6rem; color: var(--text-muted); }
  .admin-report-list { display: flex; flex-direction: column; gap: 0.5rem; }
  .admin-report-item { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--text-mid); padding: 6px 0; border-bottom: 1px solid rgba(90,60,40,0.06); }
  .admin-report-item:last-child { border-bottom: none; }
  .report-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
  .report-dot.red { background: #F87171; }
  .report-dot.amber { background: var(--amber); }
  .report-dot.green { background: var(--green-bright); }
  .report-text { flex: 1; }
  .report-action { font-size: 0.72rem; color: var(--green-mid); font-weight: 500; cursor: pointer; white-space: nowrap; }
  @media (max-width: 960px) { .admin-mockup { grid-template-columns: 1fr; } .admin-sidebar { display: none; } .admin-stats-row { grid-template-columns: repeat(2, 1fr); } .admin-bottom-row { grid-template-columns: 1fr; } }

  /* scroll animations */
  .reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }

  /* responsive */
  @media (max-width: 900px) {
    nav { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    section { padding: 4rem 1.5rem; }
    .hero { grid-template-columns: 1fr; padding: 6rem 1.5rem 3rem; }
    .hero-visual { margin-top: 3rem; }
    .problem-section, .listings-section, .trust-section { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
    /* Tablet: 2 cols. Brand spans both at the top so the 4 link groups
       sit in a clean 2×2 grid below it (instead of leaving one orphan). */
    footer { grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2.5rem 1.5rem; }
    footer .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { padding: 1.5rem; }
    .stats-bar { padding: 2rem 1rem; }
    .stat-item { padding: 0.8rem 1rem; }
    .hero-phone-wrap { width: 240px; height: 480px; }
    .hero-phone { width: 240px; height: 480px; }
    .float-badge-1 { left: -60px; font-size: 0.65rem; }
    .float-badge-2 { right: -60px; font-size: 0.65rem; }
  }
  @media (max-width: 600px) {
    .problem-cards { grid-template-columns: minmax(0, 1fr); }
    .trust-badges { grid-template-columns: minmax(0, 1fr); }
    footer { grid-template-columns: minmax(0, 1fr); }
    .steps-grid { grid-template-columns: minmax(0, 1fr); }
    .step { border-right: none; border-bottom: 1px dashed rgba(90,60,40,0.15); }
    .step-connector { display: none; }
  }

/* ============================================================================
   AUTH + FORM PRIMITIVES (added by build — used by login, signup, reset, etc.)
   ============================================================================ */
.form-row { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}
.form-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid rgba(90,60,40,0.18);
  border-radius: 10px;
  background: #fff;
  color: var(--text-dark);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
}
.form-input[aria-invalid="true"] {
  border-color: #DC2626;
}
.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}
.form-submit {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--green-deep);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 0.5rem;
}
.form-submit:hover { background: var(--green-mid); transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.nav-links a.active { color: var(--green-mid); font-weight: 500; }

/* ============================================================================
   ADMIN PANEL (added by build — used by /admin/*)
   ============================================================================ */
.admin-shell { max-width: 1200px; margin: 0 auto; padding: 6rem 2rem 4rem; }
.admin-shell h1 { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--green-deep); margin-bottom: 0.3rem; }
.admin-shell .admin-sub { color: var(--text-muted); margin-bottom: 2rem; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(30,60,30,0.05); }
.admin-table th, .admin-table td { text-align: left; padding: 0.8rem 1rem; font-size: 0.88rem; border-bottom: 1px solid rgba(90,60,40,0.06); }
.admin-table th { background: var(--cream-dark); font-weight: 500; color: var(--text-mid); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-pill { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 100px; font-size: 0.72rem; font-weight: 500; }
.admin-pill.ok      { background: var(--green-light);  color: var(--green-deep); }
.admin-pill.warn    { background: var(--amber-light);  color: var(--amber-dark); }
.admin-pill.danger  { background: #FEE2E2;             color: #991B1B; }
.admin-pill.muted   { background: rgba(90,60,40,0.08); color: var(--text-mid); }

.admin-nav { display:flex; gap: 1.5rem; padding: 1rem 0 2rem; border-bottom: 1px solid rgba(90,60,40,0.1); margin-bottom: 2rem; }
.admin-nav a { color: var(--text-mid); text-decoration: none; font-size: 0.9rem; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.admin-nav a.active { color: var(--green-deep); border-bottom-color: var(--green-mid); font-weight: 500; }

.btn-danger { background: #DC2626; color: #fff; border: none; padding: 0.4rem 0.9rem; border-radius: 6px; font-size: 0.82rem; cursor: pointer; }
.btn-danger:hover { background: #B91C1C; }
.btn-muted  { background: rgba(90,60,40,0.08); color: var(--text-dark); border: none; padding: 0.4rem 0.9rem; border-radius: 6px; font-size: 0.82rem; cursor: pointer; }
.btn-muted:hover  { background: rgba(90,60,40,0.14); }

/* ============================================================================
   MOBILE — responsive overrides for phones (≤768px) and small phones (≤480px)
   Added during pre-launch audit. The bare-desktop styles above use generous
   4rem horizontal padding and 2-column grids that explode on narrow screens.
   ============================================================================ */

/* Nav <details> popovers — bug fix for horizontal scroll on mobile.
   Both .notif-menu-pop and .user-menu-pop have inline `position: absolute/fixed`
   styles that keep them rendered even when their <details> parent is CLOSED.
   Native <details> collapse only auto-hides siblings of <summary> that are in
   normal flow — absolutely/fixed-positioned children stay rendered with
   their explicit width (340px and ~40px respectively), extending the document
   scroll width by ~400px at 375px viewport.
   Forcing display:none when not [open] restores the expected behavior. */
details.notif-menu:not([open]) > .notif-menu-pop,
details.user-menu:not([open]) > .user-menu-pop { display: none !important; }

/* Hamburger button — hidden on desktop, shown on mobile. */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
  color: var(--green-deep);
  font-size: 1.4rem;
  line-height: 1;
}

@media (max-width: 768px) {
  /* Nav: collapse links behind a hamburger. */
  #mainNav {
    padding: 0.7rem 1rem;
    flex-wrap: wrap;
  }
  .nav-toggle {
    display: inline-flex;
    order: 3;
  }
  .nav-links {
    order: 4;
    width: 100%;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.6rem 0 0.4rem;
    border-top: 1px solid rgba(90,60,40,0.08);
    margin-top: 0.5rem;
    display: none;
  }
  #mainNav.nav-open .nav-links { display: flex; }
  .nav-links li { padding: 0.35rem 0; }
  .nav-links a { font-size: 1rem; }
  .nav-auth {
    order: 2;
    margin-left: auto;
    gap: 0.5rem !important;
  }
  .nav-cta {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  /* MOBILE NAV WIDTH FIX
     The logged-in nav stuffs 4 things into .nav-auth (+ Create, Dashboard /
     Admin, notification bell, user-menu trigger). At 375px that pushed the
     nav to ~783px and forced horizontal scroll across every authed page.
     Targeting by [href] so we don't have to edit nav.php.
     —
     1. Hide the Dashboard / Admin CTA on mobile — same destination is
        always one tap away in the user-menu dropdown AND the burger links.
     2. Shrink "+ Create" to icon-only ("+") — saves ~50px and the icon is
        still self-explanatory on a tap-first surface.
     3. Hide the "Hi, [name]" label in the user-menu trigger — the avatar +
        chevron alone is recognized, and the name is right there inside the
        opened menu. Saves ~70px of trigger width.
     Together these claw back ~200px so the nav fits inside 375px. */
  .nav-auth .nav-cta[href="/dashboard"],
  .nav-auth .nav-cta[href="/admin"] { display: none; }

  .nav-auth .nav-cta[href="/create"] {
    /* !important because the inline `style="padding:0.45rem 1rem;font-size:0.86rem"`
       on this link in nav.php would otherwise beat the class rule. */
    font-size: 0 !important;     /* hide "+ Create" text */
    padding: 0.45rem 0.7rem !important;
    line-height: 1 !important;
  }
  .nav-auth .nav-cta[href="/create"]::before {
    content: "+";
    font-size: 1.1rem;
    font-weight: 700;
  }

  /* User-menu trigger: keep avatar + chevron, hide the name text. The
     trigger structure is .user-menu-avatar (+ initial) + name span + chevron. */
  .user-menu-trigger > span:not(.user-menu-avatar):not(.user-menu-avatar-initial):not(.user-menu-chevron) {
    display: none;
  }
  .user-menu-trigger { padding: 0.25rem 0.4rem; }

  /* Hide "Log out" form button inside nav-auth dropdown on mobile —
     it appears below in the nav-links list via the same partial. */

  /* Hero: stack to one column, smaller side padding. */
  .hero {
    grid-template-columns: 1fr;
    padding: 6rem 1.2rem 2.5rem;
    gap: 2rem;
    min-height: auto;
  }
  .hero-content { order: 1; }
  .hero-illustration { order: 2; max-width: 100%; }
  .hero-bg-circle-1, .hero-bg-circle-2 { display: none; }

  /* Wide-padded sections shrink to phone-friendly. */
  .admin-shell { padding: 5rem 1rem 3rem; }

  /* Hero typography reduces. */
  .hero h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); }

  /* Generic sections that use 4rem padding (impact-section, cta-section,
     etc.) — shrink horizontal padding so the dark green band doesn't
     overflow on phones. */
  .impact-section, .cta-section, .map-section, .features-section {
    padding-left: 1.2rem !important;
    padding-right: 1.2rem !important;
  }
}

@media (max-width: 480px) {
  /* Even tighter on small phones. */
  #mainNav { padding: 0.6rem 0.8rem; }
  .nav-logo { font-size: 1.1rem; }
  .nav-logo-leaf { width: 28px; height: 28px; }
  .nav-cta { padding: 0.4rem 0.7rem; font-size: 0.75rem; }
  .admin-shell { padding: 4.5rem 0.8rem 2.5rem; }
}

/* ── USER MENU (avatar dropdown in nav) ──────────────────────────────────
   Built on <details>/<summary> so the toggle is CSS-only at the base layer
   (CSP-safe, no inline JS). main.js adds click-outside-to-close behavior.
   Native <summary> has a disclosure triangle — we hide it and render our
   own chevron. */
.user-menu { position: relative; margin: 0; }
.user-menu > summary {
  list-style: none; /* hide native triangle on most browsers */
  cursor: pointer;
}
.user-menu > summary::-webkit-details-marker { display: none; } /* Safari */
.user-menu-trigger {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.25rem 0.5rem 0.25rem 0.3rem;
  border-radius: 100px;
  background: rgba(90,60,40,0.04);
  border: 1px solid transparent;
  font-size: 0.875rem; color: var(--text-mid);
  user-select: none;
}
.user-menu[open] > summary,
.user-menu-trigger:hover { background: rgba(90,60,40,0.10); border-color: rgba(90,60,40,0.08); }
.user-menu-avatar {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
}
.user-menu-avatar-initial {
  background: var(--green-light); color: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.78rem;
}
.user-menu-name { white-space: nowrap; }
.user-menu-chevron { font-size: 0.7rem; opacity: 0.6; transition: transform 0.15s; }
.user-menu[open] .user-menu-chevron { transform: rotate(180deg); }

.user-menu-pop {
  position: absolute; right: 0; top: calc(100% + 0.4rem);
  min-width: 240px;
  background: #fff;
  border: 1px solid rgba(90,60,40,0.10);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(30,60,30,0.12);
  padding: 0.4rem 0;
  z-index: 200;
  animation: user-menu-pop-in 0.13s ease;
}
@keyframes user-menu-pop-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.user-menu-header { padding: 0.55rem 1rem 0.45rem; }
.user-menu-header-name {
  font-weight: 600; color: var(--green-deep); font-size: 0.92rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-menu-header-slug {
  font-size: 0.76rem; color: var(--text-muted); margin-top: 0.1rem;
}
.user-menu-divider {
  height: 1px; background: rgba(90,60,40,0.08); margin: 0.25rem 0;
}
.user-menu-item {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.5rem 1rem;
  color: var(--text-dark); text-decoration: none;
  font-size: 0.86rem;
  width: 100%; text-align: left;
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.user-menu-item:hover { background: var(--cream); color: var(--green-deep); }
.user-menu-icon { width: 1.2em; text-align: center; flex-shrink: 0; }
.user-menu-item-admin { color: var(--amber-dark); }
.user-menu-item-admin:hover { color: #7B5A0F; background: #FFF3C7; }

/* On mobile the menu drops down full-width below the nav rather than
   floating to the right (where it would clip off-screen). */
@media (max-width: 768px) {
  .user-menu-pop {
    position: fixed; right: 0.5rem; left: 0.5rem; top: 3.2rem;
    min-width: 0;
  }
}

/* Form-submit spinner — three pulsing dots used by form-submit.js
   when a button is locked mid-submit. */
.spinner-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 3px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.4;
  animation: spinner-pulse 1.2s ease-in-out infinite;
}
.spinner-dot:nth-child(2) { animation-delay: 0.15s; }
.spinner-dot:nth-child(3) { animation-delay: 0.30s; margin-right: 6px; }
@keyframes spinner-pulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40%           { opacity: 1.0; transform: scale(1.1); }
}
