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

:root {
  --green: #00594F;
  --green-dark: #003D36;
  --green-light: #007A6D;
  --green-pale: #E8F2F0;
  --gold: #B8892A;
  --gold-light: #F0E4C4;
  --cream: #FAFAF7;
  --warm-white: #FFFFFF;
  --text: #1A1A18;
  --text-muted: #5A5A55;
  --text-light: #8A8A82;
  --border: #E0E0D8;
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 32px;
}

.nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--green-dark);
}

.nav-logo img { display: block; object-fit: contain; }

.nav-wordmark {
  font-family: 'Source Serif 4', serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--green-dark);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--green); }

.nav-cta {
  background: var(--green);
  color: white !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--green-dark) !important; color: white !important; }

.nav-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
  align-self: center;
}

.nav-login {
  font-weight: 600 !important;
  color: var(--green) !important;
}

.nav-login:hover { color: var(--green-dark) !important; }

.nav-logout-form { margin: 0; display: flex; align-items: center; }

.nav-logout {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
  padding: 0;
  transition: color 0.2s;
}

.nav-logout:hover { color: var(--green-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--green-dark);
  cursor: pointer;
  padding: 6px;
  align-items: center;
  justify-content: center;
}

/* SECTIONS */
section { scroll-margin-top: 64px; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* HERO */
.hero {
  padding: 120px 32px 80px;
  background: var(--green-dark);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(0,122,109,0.4) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  color: white;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: #A8D5CF;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-store {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: var(--green-dark);
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.btn-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-store-label {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.btn-store-sub {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-store-name {
  font-size: 16px;
  font-weight: 700;
}

/* HERO PHONE MOCKUP */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.phone-frame {
  width: 260px;
  height: 520px;
  background: #111;
  border-radius: 40px;
  border: 8px solid #333;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.08);
  overflow: hidden;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #00594F 0%, #003D36 60%, #002B25 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 20px;
  color: white;
}

.phone-notch {
  width: 80px;
  height: 22px;
  background: #111;
  border-radius: 0 0 14px 14px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.phone-app-header {
  font-family: 'Source Serif 4', serif;
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.phone-app-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}

.phone-search {
  width: 100%;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-meeting-card {
  width: 100%;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
}

.phone-meeting-name {
  font-size: 12px;
  font-weight: 600;
  color: white;
  margin-bottom: 2px;
}

.phone-meeting-meta {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
}

.phone-badge {
  display: inline-block;
  background: rgba(168,213,207,0.25);
  color: #A8D5CF;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
}

/* STATS */
.stats-bar {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
}

.stat-item {
  flex: 1;
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: 'Source Serif 4', serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

/* FEATURES */
.features {
  padding: 100px 32px;
  background: var(--cream);
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 8px 32px rgba(0,89,79,0.1);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--green-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FREEDOM FUND PREMIUM */
.freedom-fund {
  margin-top: 32px;
  background: var(--green-dark);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.freedom-fund::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 85% 30%, rgba(184,137,42,0.22) 0%, transparent 70%);
  pointer-events: none;
}

.freedom-fund > * { position: relative; z-index: 1; }

.ff-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(184,137,42,0.18);
  border: 1px solid rgba(184,137,42,0.4);
  color: var(--gold-light);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.ff-title {
  font-family: 'Source Serif 4', serif;
  font-size: 30px;
  font-weight: 700;
  color: white;
  line-height: 1.15;
  margin-bottom: 14px;
}

.ff-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  margin-bottom: 28px;
}

.ff-amount {
  color: var(--gold-light);
  font-weight: 700;
}

.ff-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: white;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.ff-cta:hover { background: #9C7322; transform: translateY(-2px); }

.ff-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ff-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 18px 20px;
}

.ff-feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: rgba(184,137,42,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ff-feature-name {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 2px;
}

.ff-feature-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

/* TOOLS SECTION */
.tools {
  padding: 100px 32px;
  background: white;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tool-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  display: block;
}

.tool-card:hover {
  box-shadow: 0 8px 32px rgba(0,89,79,0.1);
  transform: translateY(-2px);
}

.tool-card-header {
  padding: 28px;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  gap: 14px;
}

.tool-card-icon {
  width: 44px;
  height: 44px;
  background: var(--green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-card-title {
  font-family: 'Source Serif 4', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--green-dark);
}

.tool-card-body {
  padding: 24px 28px;
  background: white;
}

.tool-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  transition: gap 0.2s;
}

.tool-card:hover .btn-tool { gap: 10px; }

/* ABOUT */
.about {
  padding: 100px 32px;
  background: var(--cream);
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-quote {
  font-family: 'Source Serif 4', serif;
  font-size: 28px;
  font-style: italic;
  color: var(--green-dark);
  line-height: 1.4;
  position: relative;
  padding-left: 28px;
}

.about-quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--green);
  border-radius: 4px;
}

.about p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.about p:last-child { margin-bottom: 0; }

/* AREAS / WEBSERVANTS */
.areas {
  padding: 100px 32px;
  background: var(--green-pale);
}

.areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.areas-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,89,79,0.08);
  border: 1px solid rgba(0,89,79,0.2);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--green-dark);
  font-weight: 600;
}

.areas-note svg { flex-shrink: 0; }

.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-solid:hover { background: var(--green-dark); }

.areas-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.areas-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: white;
  border-radius: 14px;
  padding: 22px 24px;
  border: 1px solid var(--border);
}

.areas-step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Source Serif 4', serif;
  font-size: 13px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
}

.areas-step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.areas-step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FOOTER */
footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
}

.footer-brand {
  font-family: 'Source Serif 4', serif;
  font-size: 22px;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
  margin-bottom: 24px;
}

.footer-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  text-decoration: none;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}

.footer-col a:hover { color: white; }

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

.footer-bottom a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover { color: white; }

.footer-bottom .footer-sep {
  margin: 0 8px;
  color: rgba(255,255,255,0.2);
}

/* AUTH / LOGIN */
.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* clear the fixed 64px nav, plus breathing room */
  padding: 104px 20px 64px;
  background: var(--green-pale);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0,89,79,0.08);
}

/* DONATE */
.donate-section {
  /* clear the fixed 64px nav, plus breathing room */
  padding: 104px 20px 64px;
  background: var(--green-pale);
  min-height: calc(100vh - 64px);
}

.donate-intro {
  text-align: center;
  margin-bottom: 48px;
}

/* center the shared, left-aligned .section-sub within the donate hero */
.donate-intro .section-sub {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.donate-widget {
  display: flex;
  justify-content: center;
}

/* MEETING FINDER */
.meetings-section {
  /* clear the fixed 64px nav, plus breathing room */
  padding: 104px 20px 64px;
  background: var(--green-pale);
  min-height: calc(100vh - 64px);
}

.meetings-intro {
  text-align: center;
  margin-bottom: 48px;
}

/* center the shared, left-aligned .section-sub within the meetings hero */
.meetings-intro .section-sub {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

/* At <=1280px let the injected meeting-finder widget span full width: drop the
   section + container horizontal constraints (the widget brings its own padding),
   but keep the hero's gutter by moving it onto .meetings-intro. Nav clearance
   (the section's top padding) is untouched. */
@media (max-width: 1280px) {
  .meetings-section {
    padding-left: 0;
    padding-right: 0;
  }
  .meetings-section .container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }
  .meetings-intro {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-title {
  font-family: 'Source Serif 4', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 15px;
  color: var(--text-muted);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.auth-input {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input::placeholder { color: var(--text-light); }

.auth-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,89,79,0.12);
  background: white;
}

.auth-field-errors {
  list-style: none;
  font-size: 13px;
  color: #B42318;
}

.auth-alert {
  background: #FEF3F2;
  border: 1px solid #FECDCA;
  color: #B42318;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 20px;
}

.auth-alert ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-block {
  display: block;
  width: 100%;
  border: none;
  cursor: pointer;
  background: var(--green);
  color: white;
  padding: 13px 20px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  margin-top: 4px;
}

.btn-block:hover {
  background: var(--green-dark);
  color: white;
  transform: translateY(-1px);
}

/* Callout box used on signup / confirmation pages */
.auth-note {
  background: var(--green-pale);
  border: 1px solid rgba(0,89,79,0.18);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.auth-note-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 5px;
}

.auth-note p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.auth-note a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}

.auth-note a:hover { text-decoration: underline; }

/* Body copy for message pages (account created, email verified, …) */
.auth-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.auth-text:last-child { margin-bottom: 0; }

.auth-links {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-links a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}

.auth-links a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

/* IMPORT TESTER */
.it-section {
  /* clear the fixed 64px nav, plus breathing room */
  padding: 104px 20px 64px;
  background: var(--green-pale);
  min-height: calc(100vh - 64px);
}

.it-intro {
  text-align: center;
  margin-bottom: 32px;
}

.it-intro .section-sub {
  margin: 0 auto;
}

.it-intro code,
.it-form code {
  background: rgba(0, 89, 79, 0.08);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.92em;
}

.it-form {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 8px 32px rgba(0, 89, 79, 0.08);
}

.it-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.it-form-row {
  display: flex;
  gap: 12px;
}

.it-form-row .auth-input {
  flex: 1;
}

.it-submit {
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  background: var(--green);
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}

.it-submit:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.it-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.it-alert {
  max-width: 760px;
  margin: 24px auto 0;
}

.it-empty {
  max-width: 760px;
  margin: 32px auto 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
}

.it-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
}

.it-stat {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 28px;
  text-align: center;
  min-width: 150px;
}

.it-stat-num {
  display: block;
  font-family: 'Source Serif 4', serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--green);
}

.it-stat.is-valid .it-stat-num { color: #1a7f5a; }
.it-stat.is-invalid .it-stat-num { color: #B42318; }

.it-stat-label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.it-truncated,
.it-legend {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

.it-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.it-card {
  background: white;
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.it-card.is-valid { border-left-color: #1a7f5a; }
.it-card.is-invalid { border-left-color: #B42318; }

.it-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.it-card-name {
  font-family: 'Source Serif 4', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.it-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.it-badge-valid { background: #E7F4EE; color: #1a7f5a; }
.it-badge-invalid { background: #FEF3F2; color: #B42318; }

.it-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.it-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
}

.it-tag-attendance { background: var(--green-pale); color: var(--green-dark); }
.it-tag-online { background: var(--gold-light); color: var(--gold); }

.it-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.it-meta-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  font-size: 14px;
}

.it-meta-row dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-light);
  padding-top: 2px;
}

.it-meta-row dd { color: var(--text); line-height: 1.5; }

.it-meta-note {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.it-truncate {
  word-break: break-all;
  font-size: 13px;
  color: var(--text-muted);
}

.it-types {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.it-type-chip {
  font-size: 12px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  color: var(--text-muted);
}

.it-issues,
.it-adjustments {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
}

.it-issues { background: #FEF3F2; border: 1px solid #FECDCA; }
.it-adjustments { background: #FFF8EC; border: 1px solid #F0E4C4; }

.it-issues-title,
.it-adjustments-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.it-issues-title { color: #B42318; }
.it-adjustments-title { color: var(--gold); }

.it-issues ul,
.it-adjustments ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.it-issues li,
.it-adjustments li {
  position: relative;
  padding-left: 16px;
  line-height: 1.5;
}

.it-issues li::before { content: '✕'; position: absolute; left: 0; color: #B42318; }
.it-adjustments li::before { content: '•'; position: absolute; left: 4px; color: var(--gold); }

.it-issues li { color: #7A271A; }
.it-adjustments li { color: #6B5418; }

@media (max-width: 560px) {
  .it-form-row { flex-direction: column; }
  .it-submit { width: 100%; }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 16px;
    box-shadow: 0 16px 32px rgba(0,0,0,0.1);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .nav-links.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav-links li { padding: 0; }
  .nav-links li a {
    display: block;
    padding: 15px 28px;
    font-size: 17px;
  }
  .nav-divider {
    width: auto;
    height: 1px;
    margin: 8px 28px;
    align-self: stretch;
  }
  .nav-login { padding: 15px 28px !important; }
  .nav-logout-form { display: block; }
  .nav-logout {
    display: block;
    width: 100%;
    text-align: left;
    padding: 15px 28px;
    font-size: 17px;
  }
  .nav-cta {
    display: block !important;
    margin: 12px 28px 4px;
    text-align: center;
    padding: 14px !important;
    font-size: 16px !important;
  }
}

@media (max-width: 900px) {
  .hero-inner, .about-inner, .areas-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .features-grid, .tools-grid { grid-template-columns: 1fr; }
  .freedom-fund { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .stats-inner { flex-wrap: wrap; }
  .stat-item { min-width: 50%; border-right: none; border-bottom: 1px solid var(--border); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  nav { padding: 0 20px; }
}

@media (max-width: 560px) {
  .hero { padding: 100px 20px 60px; }
  .features, .tools, .about, .areas { padding: 64px 20px; }
  .freedom-fund { padding: 24px; }
  .stat-item { min-width: 100%; }
  .hero-actions { flex-direction: column; }
  .btn-store { width: 100%; }
}

/* PRIVACY / LEGAL */
.legal-section {
  /* clear the fixed 64px nav, plus breathing room */
  padding: 104px 20px 80px;
  background: var(--cream);
  min-height: calc(100vh - 64px);
}

.legal-intro {
  text-align: center;
  margin-bottom: 48px;
}

.legal-intro .section-sub {
  margin: 0 auto;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px clamp(24px, 5vw, 56px);
}

.legal-content h2 {
  font-family: 'Source Serif 4', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: -0.3px;
  margin: 36px 0 12px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-updated {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.legal-callout {
  background: var(--green-pale);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.legal-callout p {
  margin-bottom: 0;
  color: var(--green-dark);
}

.legal-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

.legal-content h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--green-dark);
  margin: 28px 0 10px;
}

.legal-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 8px;
}

.legal-content p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-content ul {
  margin: 0 0 16px 22px;
  color: var(--text-muted);
}

.legal-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.legal-content a {
  color: var(--green);
  text-decoration: underline;
  word-break: break-word;
}

.legal-content a:hover { color: var(--green-light); }
