/* ============================================================
   Atwater Community Connect — design system
   ============================================================ */

:root {
  /* Brand colors derived from the Atwater logo (navy + warm gold accent) */
  --navy-900: #0f1d33;
  --navy-800: #142a55;
  --navy-700: #1a3263;
  --navy-600: #1f3b73;   /* primary */
  --navy-500: #2d4f93;
  --navy-100: #eaeff7;
  --navy-50:  #f4f7fc;

  --gold-600: #b8893f;
  --gold-500: #c9a961;   /* accent (ratings, highlights) */
  --gold-100: #f7eccd;

  --ink:       var(--navy-900);
  --ink-soft:  #41506d;
  --muted:     #7e8aa1;
  --line:      #e1e6ee;
  --line-soft: #eef1f6;
  --surface:   #ffffff;
  --bg:        #f6f8fb;
  --bg-warm:   #fbfaf6;
  --primary:        var(--navy-600);
  --primary-dark:   var(--navy-800);
  --primary-soft:   var(--navy-100);
  --primary-ink:    #ffffff;
  --accent:    var(--gold-500);
  --danger:    #b3261e;
  --success:   #1f6d4a;

  --radius-xs:  6px;
  --radius-sm:  10px;
  --radius:     14px;
  --radius-lg:  20px;

  --shadow-sm:  0 1px 2px rgba(15, 29, 51, 0.06);
  --shadow:     0 1px 3px rgba(15, 29, 51, 0.06), 0 8px 24px rgba(15, 29, 51, 0.05);
  --shadow-lg:  0 4px 8px rgba(15, 29, 51, 0.06), 0 24px 48px rgba(15, 29, 51, 0.08);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Cormorant Garamond', 'Trajan Pro', Georgia, 'Times New Roman', serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* ============================================================ Base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }

::selection { background: var(--navy-100); color: var(--navy-800); }

/* ============================================================ Layout */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

main { flex: 1; }
main.container {
  padding-top: 48px;
  padding-bottom: 96px;
  animation: page-in 280ms var(--ease-out);
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  main.container { padding-top: 28px; padding-bottom: 56px; }
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================ Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -0.005em;
  font-weight: 600;
  line-height: 1.15;
}
h1 { font-size: clamp(2.25rem, 4vw, 3rem); letter-spacing: -0.015em; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 700; font-family: var(--font-body); letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-soft); margin: 8px 0 4px; }
p  { margin: 0 0 12px; }
.lede { font-size: 1.125rem; color: var(--ink-soft); max-width: 56ch; line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
a { color: var(--primary); text-decoration: none; transition: color 120ms var(--ease); }
a:hover { color: var(--primary-dark); }

/* ============================================================ Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 16px;
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ink-soft);
  transition: background 140ms var(--ease), border-color 140ms var(--ease);
}
.nav-toggle:hover { background: var(--navy-50); border-color: var(--navy-100); }
.nav-toggle[aria-expanded="true"] { background: var(--navy-50); border-color: var(--navy-100); color: var(--primary); }
.hamburger,
.hamburger::before,
.hamburger::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}
.hamburger { position: relative; }
.hamburger::before { position: absolute; top: -6px; left: 0; }
.hamburger::after  { position: absolute; top:  6px; left: 0; }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after  { transform: translateY(-6px) rotate(-45deg); }

/* Desktop / tablet — horizontal nav */
@media (min-width: 721px) {
  .nav { gap: 4px; }
  .nav .nav-signout {
    margin-left: 8px;
    border: 1px solid var(--line);
    color: var(--ink-soft);
  }
  .nav .nav-signout:hover { background: var(--navy-50); border-color: var(--navy-100); color: var(--primary); }
}

/* Mobile — drawer */
@media (max-width: 720px) {
  .header-inner { padding: 12px 16px; gap: 10px; flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 0 4px;
    margin-top: 8px;
    border-top: 1px solid var(--line);
  }
  .nav.open { display: flex; animation: drawer-in 160ms var(--ease-out); }
  .nav a, .nav button {
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }
  .nav a.active { background: var(--navy-50); color: var(--primary); }
  .nav a.active::after { display: none; }
  .nav .nav-signout {
    margin-top: 8px;
    border-top: 1px solid var(--line);
    border-radius: 0;
    color: var(--danger);
    padding-top: 16px;
  }
  .nav .nav-signout:hover { background: #fbeceb; color: var(--danger); }
}
@keyframes drawer-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  transition: opacity 160ms var(--ease);
}
.brand:hover { opacity: 0.85; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.brand-tag {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}
@media (max-width: 520px) {
  .brand-tag { display: none; }
}

/* Nav (base styles — display set by media-aware rules above) */
.nav {
  align-items: center;
  gap: 4px;
}
@media (min-width: 721px) {
  .nav { display: flex; }
}
.nav a, .nav button {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  font-family: inherit;
  white-space: nowrap;
  transition: color 140ms var(--ease), background 140ms var(--ease);
}
.nav a:hover, .nav button:hover { color: var(--primary); background: var(--navy-50); }
.nav a.active { color: var(--primary); font-weight: 600; }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  animation: nav-underline 200ms var(--ease-out);
}
@keyframes nav-underline {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); transform-origin: left; }
}
@media (max-width: 720px) {
  .nav a, .nav button { padding: 8px 10px; font-size: 0.85rem; }
}

/* ============================================================ Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 18px 0;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-mark { width: 28px; height: 28px; opacity: 0.8; }
.footer-inner small { font-size: 0.85rem; }
.footer-inner strong { color: var(--ink-soft); font-weight: 600; }

/* ============================================================ Hero */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
  position: relative;
  margin-bottom: 80px;
}
.hero::before {
  content: "";
  position: absolute;
  top: -40px;
  left: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at center, var(--navy-50) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.hero h1 { font-weight: 600; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 14px; }
.hero-card.card { padding: 28px; background: linear-gradient(180deg, var(--surface) 0%, var(--bg-warm) 100%); }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; gap: 32px; margin-bottom: 56px; } }

/* ============================================================ Hero — billboard
   Type-led, centered. Below the CTAs sits a 3-card "community snapshot" row
   that proves the product is alive. No overlapping cards — clean grid. */
.hero-billboard {
  display: block;
  position: relative;
  padding: 40px 0 8px;
  margin-bottom: 64px;
  text-align: center;
}
.hero-billboard::before { display: none; }
.hero-bg {
  position: absolute;
  inset: -60px -40px auto -40px;
  height: 760px;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.65;
}
.hero-blob-a {
  width: 620px; height: 620px;
  left: 50%; top: -120px;
  transform: translateX(-65%);
  background: radial-gradient(circle, var(--navy-100), transparent 65%);
}
.hero-blob-b {
  width: 540px; height: 540px;
  left: 50%; top: 0;
  transform: translateX(-15%);
  background: radial-gradient(circle, var(--gold-100), transparent 65%);
  opacity: 0.45;
}

.hero-billboard .hero-content {
  max-width: 880px;
  margin: 0 auto 56px;
}
.hero-billboard h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.75rem);
  line-height: 1.02;
  margin-bottom: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.hero-billboard h1 .hero-accent {
  color: var(--primary);
  font-style: italic;
  background: linear-gradient(135deg, var(--navy-600) 0%, var(--navy-500) 60%, var(--gold-600) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hero-billboard .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  margin: 0 auto 4px;
  max-width: 56ch;
  color: var(--ink-soft);
}
.hero-billboard .lede strong { color: var(--ink); font-weight: 600; }
.hero-billboard .cta-row { justify-content: center; margin: 28px 0 14px; }
.hero-billboard .btn-primary span {
  display: inline-block;
  margin-left: 4px;
  transition: transform 160ms var(--ease);
}
.hero-billboard .btn-primary:hover span { transform: translateX(4px); }
.hero-fineprint { margin-top: 6px; }
.hero-fineprint a { font-weight: 500; }
@media (max-width: 640px) {
  .hero-billboard { padding-top: 16px; margin-bottom: 40px; }
  .hero-billboard .hero-content { margin-bottom: 36px; }
}

/* ---------- Community snapshot row (3 cards) ---------- */
.snapshot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
  animation: float-in 700ms var(--ease-out) 200ms both;
}
@media (max-width: 960px) { .snapshot-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .snapshot-row { grid-template-columns: 1fr; } }

.snap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 0 4px 12px rgba(15, 29, 51, 0.04), 0 16px 40px rgba(15, 29, 51, 0.07);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
}
.snap:hover { transform: translateY(-3px); box-shadow: 0 4px 14px rgba(15, 29, 51, 0.06), 0 24px 56px rgba(15, 29, 51, 0.10); }
.snap::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold-500));
  opacity: 0.85;
}
.snap h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 4px 0 0;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  line-height: 1.25;
}
.snap-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
}
.snap-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.snap-tag.gold { color: var(--gold-600); }
.snap-stars { color: var(--gold-500); letter-spacing: 1px; }
.snap-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--navy-100);
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.snap-rate {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold-600);
  font-size: 1rem;
}
.snap-quote {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  border-left: 3px solid var(--gold-500);
  padding-left: 10px;
}
.snap-bar {
  height: 8px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
  margin: 6px 0 4px;
}
.snap-bar > span {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  background: linear-gradient(90deg, var(--primary), var(--navy-500));
  border-radius: 999px;
  animation: snap-bar-fill 1400ms var(--ease-out) 400ms both;
}
@keyframes snap-bar-fill { from { width: 0; } }
.snap-meta { font-size: 0.78rem; color: var(--muted); }
.snap-meta-line { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }
.snap-meta-line strong { color: var(--ink); }
.snap-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.snap-faces { display: flex; align-items: center; margin-top: 4px; }
.snap-av {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  border: 2px solid var(--surface);
  margin-left: -8px;
}
.snap-av:first-child { margin-left: 0; }
.snap-av-a { background: #e5edf8; color: var(--primary); }
.snap-av-b { background: #f7eccd; color: var(--gold-600); }
.snap-av-c { background: #e8f1ec; color: var(--success); }
.snap-av-d { background: #fbeceb; color: #b03831; }
.snap-av-e { background: #edeaf6; color: #5a4fb0; }
.snap-av-more { background: var(--ink); color: white; font-size: 0.62rem; }

.snap-stat-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 10px;
}
.snap-stat-list li {
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.2;
}
.snap-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 2px;
}

/* Preview stack on the right */
.hero-visual {
  position: relative;
  padding-top: 100px;     /* room for the back card to show fully */
  min-height: 500px;
  animation: float-in 600ms var(--ease-out) both;
}
@keyframes float-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 900px) {
  .hero-visual { min-height: 0; padding-top: 0; }
}

.mock-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 0 4px 12px rgba(15, 29, 51, 0.04), 0 24px 48px rgba(15, 29, 51, 0.10);
}
.mock-card h3, .mock-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 6px 0 12px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
}
.mock-card h3 { font-size: 1.3rem; }
.mock-card h4 { font-size: 1.1rem; margin-bottom: 8px; }
.mock-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.8rem;
}
.mock-meta { color: var(--muted); margin-left: 6px; }
.mock-stars { color: var(--gold-500); letter-spacing: 1px; font-size: 0.95rem; }

/* Frontmost card — the big initiative one */
.mock-card-front {
  position: relative;
  z-index: 2;
  animation: float-card 6s ease-in-out 600ms infinite alternate;
}
@keyframes float-card {
  from { transform: translateY(0); }
  to   { transform: translateY(-6px); }
}
.mock-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--navy-100);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.mock-rate {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-600);
}
.mock-progress { margin-bottom: 16px; }
.mock-bar {
  height: 8px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.mock-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--navy-500));
  border-radius: 999px;
  animation: bar-fill 1200ms var(--ease-out) 200ms both;
}
@keyframes bar-fill {
  from { width: 0 !important; }
}
.mock-progress-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.mock-progress-meta strong { color: var(--ink); }
.mock-faces {
  display: flex;
  align-items: center;
  margin-top: 6px;
}
.face {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy-50);
  border: 2px solid var(--surface);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: -8px;
}
.face:first-child { margin-left: 0; }
.face-1 { background: #e5edf8; }
.face-2 { background: #f7eccd; color: var(--gold-600); }
.face-3 { background: #e8f1ec; color: var(--success); }
.face-4 { background: #fbeceb; color: #b03831; }
.face-5 { background: #edeaf6; color: #5a4fb0; }
.face-more {
  background: var(--ink);
  color: white;
  font-size: 0.62rem;
}

/* Card behind — vendor recommendation, peeks out above the initiative card */
.mock-card-back {
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  z-index: 1;
  transform: rotate(2deg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-warm) 100%);
  animation: float-card 7s ease-in-out 800ms infinite alternate-reverse;
}
.mock-card-back .mock-tag {
  background: var(--gold-100);
  color: var(--gold-600);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mock-quote {
  font-style: italic;
  color: var(--ink-soft);
  border-left: 3px solid var(--gold-500);
  padding-left: 10px;
  margin: 8px 0;
  font-size: 0.9rem;
  line-height: 1.5;
}
.mock-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 10px;
}
.mock-avatar {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e5edf8;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .mock-card-back { position: relative; top: 0; right: 0; width: 100%; transform: none; margin-bottom: -8px; }
  .hero-blob-c { display: none; }
}
@media (max-width: 640px) {
  .hero-wow { padding-top: 12px; margin-bottom: 48px; }
  .mock-card { padding: 16px 18px; }
  .mock-card h3 { font-size: 1.15rem; }
}

/* Accented feature card */
.feature-card.feature-accent {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-warm) 100%);
}
.feature-card.feature-accent .feature-icon {
  background: var(--gold-100);
  color: var(--gold-600);
  border-color: var(--gold-100);
}

/* ============================================================ Features (landing) */
.features { margin-bottom: 64px; }
.features-head { text-align: center; margin-bottom: 36px; }
.features-head h2 { font-size: 2.25rem; margin: 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--navy-100);
}
.feature-card h3 { margin: 0; font-size: 1.35rem; }
.feature-card > p { color: var(--ink-soft); margin: 0; line-height: 1.55; }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--navy-50);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  border: 1px solid var(--navy-100);
}

.feature-meta {
  list-style: none;
  padding: 14px 0 0;
  margin: auto 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feature-meta li {
  font-size: 0.85rem;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}
.feature-meta li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
}

/* Eyebrow + heading variants used across landing */
.eyebrow.gold { color: var(--gold-600); }
.hero h1 em {
  font-style: italic;
  color: var(--primary);
  font-family: var(--font-display);
}
.hero .lede strong { color: var(--ink); font-weight: 600; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.hero-card .eyebrow { margin-bottom: 8px; }
.hero-card.card h3 {
  font-size: 1.35rem;
  margin: 0 0 10px;
  line-height: 1.25;
}
.hero-card.card p { margin-bottom: 14px; }
.hero-card.card p strong { color: var(--ink); font-weight: 600; }

/* ============================================================ Landing: stat bar */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0 0 80px;
}
@media (max-width: 800px) { .stat-bar { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .stat-bar { grid-template-columns: 1fr; } }
.stat-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.stat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-tile::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold-500));
}
.stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.stat-cap {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* Section heads */
.features-head { text-align: center; margin-bottom: 36px; }
.features-head h2 { font-size: 2.25rem; margin: 0 0 8px; }
.features-sub { color: var(--ink-soft); max-width: 50ch; margin: 0 auto; line-height: 1.55; }

/* 4-up feature grid update (was 3) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1080px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .feature-grid { grid-template-columns: 1fr; } }

/* ============================================================ Landing: scenarios */
.scenarios { margin: 0 0 80px; }
.scenario-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.scenario {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
.scenario:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--navy-100);
}
.scenario-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 500;
  color: var(--gold-500);
  line-height: 1;
  letter-spacing: -0.02em;
}
.scenario-body h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 600;
}
.scenario-body p { margin: 0; color: var(--ink-soft); line-height: 1.65; }
.scenario-body em { font-style: italic; color: var(--primary); font-weight: 500; }
@media (max-width: 640px) {
  .scenario { grid-template-columns: 1fr; gap: 8px; padding: 22px 24px; }
  .scenario-num { font-size: 2.25rem; }
}

/* ============================================================ Landing: privacy */
.privacy-section {
  margin: 0 0 80px;
  padding: 56px;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-600) 100%);
  color: rgba(255,255,255,0.9);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.privacy-section::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(201,169,97,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.privacy-section .eyebrow { color: var(--gold-500); }
.privacy-section h2 { color: white; font-size: 2.25rem; margin: 0 0 12px; }
.privacy-section .lede { color: rgba(255,255,255,0.85); max-width: 48ch; }
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
  position: relative;
  z-index: 1;
}
@media (max-width: 880px) {
  .privacy-section { padding: 36px 28px; }
  .privacy-grid { grid-template-columns: 1fr; gap: 28px; }
  .privacy-section h2 { font-size: 1.65rem; }
}
.privacy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.privacy-list li {
  padding-left: 24px;
  position: relative;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
  font-size: 0.95rem;
}
.privacy-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--gold-500);
  transform: rotate(45deg);
}
.privacy-list strong { color: white; font-weight: 600; }
.privacy-list code {
  background: rgba(255,255,255,0.1);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--gold-100);
}

/* ============================================================ Landing: Built for Atwater */
.atwater-section {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
  margin: 0 0 80px;
  padding: 44px;
}
.atwater-section h2 { font-size: 2rem; margin: 8px 0 14px; }
.atwater-section p { color: var(--ink-soft); line-height: 1.65; }
.atwater-section em { font-style: italic; color: var(--primary); font-weight: 500; }
.template-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  background: var(--bg-warm);
  border: 1px solid var(--gold-100);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.template-list li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  gap: 10px;
  align-items: center;
}
.template-list li:last-child { border-bottom: 0; color: var(--muted); font-style: italic; }
.template-list .bullet {
  color: var(--gold-500);
  font-weight: 700;
}
@media (max-width: 880px) {
  .atwater-section { grid-template-columns: 1fr; gap: 28px; padding: 32px 28px; }
}

/* ============================================================ Landing: closer */
.landing-closer {
  text-align: center;
  padding: 64px 32px;
  background: linear-gradient(180deg, var(--navy-50) 0%, var(--bg-warm) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--navy-100);
  position: relative;
  overflow: hidden;
}
.landing-closer::before {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: -180px;
  width: 540px; height: 360px;
  background: radial-gradient(ellipse, var(--navy-100) 0%, transparent 70%);
  pointer-events: none;
}
.closer-content {
  position: relative;
  z-index: 1;
  max-width: 60ch;
  margin: 0 auto;
}
.closer-content h2 { font-size: 2rem; margin: 0 0 12px; }
.closer-content .lede { margin: 0 auto 24px; }
.closer-content .cta-row { justify-content: center; margin-top: 24px; }
@media (max-width: 640px) {
  .landing-closer { padding: 44px 22px; }
  .closer-content h2 { font-size: 1.5rem; }
}

/* ============================================================ Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
.section-card, .vendor-card, .init-card { transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease); }
.section-card:hover, .vendor-card:hover, .init-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--navy-100);
}

.form-wrap { max-width: 540px; margin: 0 auto; }

/* ============================================================ Forms */
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
  letter-spacing: 0.01em;
}

input, select, textarea {
  font: inherit;
  color: var(--ink);
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
  font-weight: 400;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }

label small { font-weight: 400; }

/* ============================================================ Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.005em;
  transition: background 160ms var(--ease), border-color 160ms var(--ease),
              color 160ms var(--ease), transform 100ms var(--ease),
              box-shadow 160ms var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--primary-soft); }

.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 1px 2px rgba(31, 59, 115, 0.25); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 14px rgba(31, 59, 115, 0.25); color: var(--primary-ink); }

.btn-secondary { background: var(--surface); color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-soft); color: var(--primary-dark); border-color: var(--primary-dark); }

.btn-ghost { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.btn-ghost:hover { background: var(--navy-50); color: var(--primary); border-color: var(--navy-100); }

.btn-danger { background: transparent; color: var(--danger); border-color: var(--line); }
.btn-danger:hover { background: #fbeceb; border-color: #f4c7c4; }

.btn-sm { padding: 6px 12px; font-size: 0.82rem; }

/* ============================================================ Misc UI */
.error {
  background: #fbeceb;
  color: var(--danger);
  border: 1px solid #f4c7c4;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.9rem;
}

.empty-state { color: var(--muted); font-style: italic; font-size: 0.9rem; }
.empty-card { text-align: center; padding: 48px 24px; }

.checklist { padding-left: 0; list-style: none; margin: 0 0 16px; }
.checklist li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--primary-soft);
  border: 2px solid var(--primary);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 5px; top: 11px;
  width: 5px; height: 8px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
}

/* Address suggestions */
.suggestions {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-top: 4px;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.suggestions:empty { display: none; }
.suggestion {
  padding: 11px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.92rem;
  transition: background 100ms var(--ease);
}
.suggestion:last-child { border-bottom: 0; }
.suggestion:hover, .suggestion.active { background: var(--navy-50); color: var(--primary); }

/* ============================================================ Dashboard */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.dash-header h2 { font-size: 2.25rem; margin-bottom: 4px; }
.completeness { text-align: center; }
.completeness > p { margin: 8px 0 0; }
.ring {
  --pct: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--pct) * 1%), var(--line) 0);
  display: grid;
  place-items: center;
  position: relative;
  margin: 0 auto;
  transition: background 600ms var(--ease);
}
.ring::after {
  content: "";
  position: absolute;
  inset: 9px;
  background: var(--bg);
  border-radius: 50%;
}
.ring span {
  position: relative;
  font-weight: 700;
  color: var(--primary);
  z-index: 1;
  font-size: 1.05rem;
  font-family: var(--font-display);
}

.suggestions-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.suggestions-panel:empty { display: none; }
.suggest-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-warm) 100%);
  border: 1px solid var(--gold-100);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
  gap: 12px;
}
.suggest-chip button {
  background: var(--primary);
  color: white;
  border: 0;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  font-family: inherit;
  transition: background 140ms var(--ease);
  white-space: nowrap;
}
.suggest-chip button:hover { background: var(--primary-dark); }

.sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 720px) { .sections { grid-template-columns: 1fr; } }
.section-card { padding: 22px 24px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 8px;
}
.section-title { margin: 0 0 4px; font-size: 1.15rem; }
.section-desc { margin: 0; }
.section-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 10px 0;
}
.section-summary .tag { /* uses .tag styles below */ }
.section-body { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.section-body .stack { gap: 14px; }

.tag {
  display: inline-block;
  background: var(--navy-50);
  border: 1px solid var(--navy-100);
  border-radius: 999px;
  padding: 3px 11px;
  margin-right: 6px;
  margin-bottom: 4px;
  font-size: 0.78rem;
  color: var(--navy-700);
  font-weight: 500;
}

/* Member / item lists */
.item-list { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.92rem;
  gap: 10px;
}
.item-row .item-meta { color: var(--muted); font-size: 0.85rem; }
.item-row .item-actions { display: flex; gap: 6px; }

.invite-link {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--bg);
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
}
.invite-link input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 4px 6px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
}

/* ============================================================ Toast */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: white;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease-out);
  z-index: 100;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.flex { display: flex; gap: 8px; align-items: center; }
.spacer { flex: 1; }

/* ============================================================ Vendor directory */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.page-head h2 { margin-bottom: 4px; }
.page-head p { margin: 0; max-width: 60ch; }

.top-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.top-services-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
  margin-right: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.service-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 140ms var(--ease), border-color 140ms var(--ease),
              color 140ms var(--ease), transform 80ms var(--ease);
}
.service-chip:hover {
  background: var(--navy-50);
  border-color: var(--navy-100);
  color: var(--primary);
}
.service-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.service-chip.active:hover { background: var(--primary-dark); color: white; }
.service-chip.active .chip-count { background: rgba(255,255,255,0.25); color: white; }
.chip-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 7px;
  background: var(--line);
  color: var(--ink-soft);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.filter-bar {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
@media (max-width: 640px) { .filter-bar { grid-template-columns: 1fr; } }

.vendor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.vendor-card { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; }
.vendor-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.vendor-head h3 { margin-bottom: 6px; font-size: 1.2rem; }
.vendor-rating { text-align: right; }
.vendor-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
}
.vendor-contact a { text-decoration: none; color: var(--primary); }
.vendor-contact a:hover { text-decoration: underline; }

.vendor-recs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* Tips & quotes from neighbors — dated, actionable hints */
.vendor-tips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.vendor-tips-head { margin-bottom: 2px; }
.vendor-tips-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.vendor-tip {
  background: linear-gradient(180deg, var(--bg-warm) 0%, #fbf8f1 100%);
  border: 1px solid var(--gold-100);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.9rem;
  position: relative;
}
.vendor-tip .tip-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.vendor-tip .tip-price {
  display: inline-block;
  background: var(--gold-500);
  color: white;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.vendor-tip .tip-season {
  display: inline-block;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--gold-100);
  color: var(--gold-600);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
}
.vendor-tip .tip-text {
  margin: 2px 0 4px;
  color: var(--ink);
  line-height: 1.5;
}
.vendor-tip .tip-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.tip-remove {
  background: transparent;
  border: 0;
  color: var(--danger);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: inherit;
  font-weight: 500;
}
.tip-remove:hover { background: #fbeceb; }

.tip-form {
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  margin-top: 4px;
}
.vendor-rec {
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold-500);
  padding: 10px 14px;
  font-size: 0.88rem;
}
.vendor-rec p { margin: 4px 0 0; color: var(--ink-soft); font-style: italic; line-height: 1.5; }
.vendor-more summary { cursor: pointer; color: var(--primary); font-size: 0.85rem; padding: 4px 0; font-weight: 500; }

.vendor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
@media (max-width: 480px) {
  .vendor-actions .btn { flex: 1 1 100%; }
}

.rec-form {
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  margin-top: 4px;
}

/* Stars (display) */
.stars { color: var(--line); letter-spacing: 1px; font-size: 0.98rem; }
.stars .star.on { color: var(--gold-500); }

/* Stars (interactive) */
.rating-input { display: flex; gap: 4px; }
.star-btn {
  background: none;
  border: 0;
  font-size: 1.5rem;
  color: var(--line);
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color 120ms var(--ease), transform 120ms var(--ease);
}
.star-btn:hover { transform: scale(1.15); }
.star-btn:hover, .star-btn.on { color: var(--gold-500); }

/* ============================================================ Dashboard quick-action teaser */
.vendor-teaser {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  padding: 18px 22px;
}
.vendor-teaser strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}
.vendor-teaser p { margin: 4px 0 0; }
@media (max-width: 560px) {
  .vendor-teaser { flex-direction: column; align-items: flex-start; }
}

/* ============================================================ Initiatives */
.init-section { margin-bottom: 32px; }
.init-section > h3 {
  font-family: var(--font-body);
  font-weight: 700;
  margin: 0 0 14px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.init-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}
.init-card { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; }
.init-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.init-head h3 { margin: 0 0 4px; font-size: 1.2rem; }
.init-stats { display: flex; gap: 8px; font-size: 0.88rem; flex-wrap: wrap; color: var(--ink-soft); }
.init-actions { display: flex; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }

.pill {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--line);
  color: var(--ink-soft);
}
.pill-open   { background: var(--navy-100); color: var(--primary); }
.pill-done   { background: #e3f1ea; color: var(--success); }
.pill-closed { background: #ece9e6; color: var(--ink-soft); }
.pill-warn   { background: var(--gold-100); color: var(--gold-600); }

.init-meta { padding: 24px 26px; margin-bottom: 18px; }
.init-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.init-dl dt { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.init-dl dd { margin: 0; }

.option-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--surface);
  transition: background 140ms var(--ease), border-color 140ms var(--ease);
}
.option-row:hover { background: var(--navy-50); border-color: var(--navy-100); }
.option-row input { margin: 0; accent-color: var(--primary); }
.option-row input:checked ~ span { color: var(--primary); }

.inline-editor .inline-row {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}

.price-estimate {
  background: var(--gold-100);
  color: var(--gold-600);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-align: right;
  font-weight: 700;
  font-size: 0.95rem !important;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.stat-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.stat-value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.export-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-warm) 100%);
}
.export-bar strong { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }

.table-card { overflow: hidden; padding: 24px 24px 8px; }
.table-card h3 { margin-bottom: 12px; }
.table-scroll { overflow-x: auto; margin: 0 -24px; padding: 0 24px 16px; }
.init-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.init-table th, .init-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  white-space: nowrap;
}
.init-table th {
  background: var(--bg);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line);
}
.init-table tbody tr { transition: background 100ms var(--ease); }
.init-table tbody tr:hover { background: var(--navy-50); }

.status-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  border: 1px solid var(--line);
}
.status-banner strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}
.status-banner p { margin: 2px 0 0; }
.status-pending { background: var(--bg-warm); border-color: var(--gold-100); }
.status-pending strong { color: var(--gold-600); }
.status-done    { background: #f1f7f3; border-color: #cce0d2; }
.status-done strong { color: var(--success); }
@media (max-width: 560px) {
  .status-banner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================ Community sharing toggles */
.share-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--surface);
  transition: background 140ms var(--ease), border-color 140ms var(--ease);
}
.share-row:hover { background: var(--navy-50); border-color: var(--navy-100); }
.share-row input { margin: 3px 0 0; accent-color: var(--primary); }
.share-row-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.share-row-text strong { font-weight: 600; color: var(--ink); font-size: 0.92rem; }

/* ============================================================ Community directory */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}
.directory-card { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; }
.directory-head h3 { margin: 0 0 4px; font-size: 1.25rem; display: flex; align-items: center; gap: 8px; }
.directory-head h3 .tag {
  font-size: 0.68rem;
  background: var(--gold-100);
  border-color: var(--gold-500);
  color: var(--gold-600);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.directory-head p { margin: 0; }
.directory-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.9rem;
  padding-bottom: 4px;
}
.directory-contact a { color: var(--primary); text-decoration: none; }
.directory-contact a:hover { text-decoration: underline; }
.wa-link { color: #128c7e !important; font-weight: 500; }
.wa-link:hover { color: #075e54 !important; }

/* ============================================================ Danger zone */
.danger-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  border-color: #f4c7c4;
  background: linear-gradient(180deg, var(--surface) 0%, #fbeceb 100%);
}
.danger-card h3 { font-size: 1.15rem; margin: 0 0 4px; color: #8a1c15; }

/* Subtle hint shown next to fields prefilled from a household's previous answers */
.remembered-hint {
  color: var(--success);
  font-weight: 500;
  font-size: 0.78rem;
  font-style: italic;
  margin: 4px 0 0;
  letter-spacing: 0.005em;
}
.danger-card p { margin: 0; max-width: 60ch; font-size: 0.92rem; }
@media (max-width: 640px) {
  .danger-card { flex-direction: column; align-items: flex-start; }
}
.directory-section { border-top: 1px solid var(--line-soft); padding-top: 12px; }
.directory-section-title {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
