/* =========================================================
   Savings Collaborative — v3 Wireframe
   Single shared stylesheet. Grayscale, system fonts only.
   ========================================================= */

/* --- Reset / base ------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #222;
  background: #ffffff;
}

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

a { color: #222; }

p { margin: 0 0 1em; }

ul { margin: 0 0 1em; padding-left: 1.25em; }
ul li { margin-bottom: 0.35em; }

/* --- Typography hierarchy ----------------------------------- */

.h1-large {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 0.5em;
}

h1, .h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 0.5em;
}

h2, .h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 0.6em;
}

h3, .h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 0.4em;
}

.caption {
  font-size: 0.85rem;
  color: #666;
}

.preheader {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 0.6em;
}

.italic { font-style: italic; }
.center { text-align: center; }
.bold { font-weight: 700; }

/* --- Page wrapper / containers ------------------------------ */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 720px;
  margin: 0 auto;
}

.medium {
  max-width: 840px;
  margin: 0 auto;
}

/* --- Section sizes ------------------------------------------ */

section { padding: 64px 0; }

.s-xl-hero { min-height: 80vh; padding: 80px 0; display: flex; align-items: center; }
.s-l-hero  { min-height: 50vh; padding: 64px 0; display: flex; align-items: center; }
.s-banner  { min-height: 25vh; padding: 48px 0; }
.s-section { padding: 64px 0; }
.s-compact { padding: 24px 0; }

.s-xl-hero > .wrap,
.s-l-hero > .wrap { width: 100%; }

/* Tonal bands to differentiate sections without color */
.band-light { background: #f5f5f5; }
.band-dark  { background: #2a2a2a; color: #f0f0f0; }
.band-dark a { color: #f0f0f0; }
.band-dark .caption { color: #c8c8c8; }

/* --- Layout primitives -------------------------------------- */

.col-1 { display: block; }

.col-2-5050 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.col-2-6040 {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 48px;
  align-items: center;
}

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

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

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

@media (max-width: 768px) {
  .col-2-5050,
  .col-2-6040,
  .col-3,
  .col-4,
  .grid-3up,
  .grid-4up,
  .grid-6up {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .h1-large { font-size: 2.2rem; }
  h1, .h1   { font-size: 1.75rem; }
  h2, .h2   { font-size: 1.3rem; }
  section { padding: 48px 0; }
  .s-xl-hero { min-height: 60vh; padding: 56px 0; }
  .s-l-hero  { min-height: 40vh; padding: 48px 0; }
}

/* --- Image placeholder boxes -------------------------------- */

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #eeeeee;
  border: 1px solid #bbbbbb;
  color: #666;
  font-size: 0.85rem;
  padding: 16px;
  min-height: 160px;
}

.placeholder.tall   { min-height: 320px; }
.placeholder.medium { min-height: 220px; }
.placeholder.short  { min-height: 120px; }
.placeholder.square { aspect-ratio: 1 / 1; min-height: 0; }
.placeholder.wide   { aspect-ratio: 16 / 9; min-height: 0; }
.placeholder.logo   { min-height: 80px; padding: 12px; }
.placeholder.portrait { aspect-ratio: 3 / 4; min-height: 0; }

/* --- CTA buttons -------------------------------------------- */

.cta {
  display: inline-block;
  padding: 12px 22px;
  border: 1.5px solid #222;
  background: transparent;
  color: #222;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  margin: 8px 8px 8px 0;
}

.cta:hover { background: #222; color: #fff; }

.band-dark .cta { border-color: #f0f0f0; color: #f0f0f0; }
.band-dark .cta:hover { background: #f0f0f0; color: #222; }

/* --- Cards -------------------------------------------------- */

.card {
  border: 1px solid #cccccc;
  background: #ffffff;
  padding: 24px;
}

.card.featured {
  border-width: 2px;
  border-color: #222;
  padding: 32px;
}

.card .card-title { margin-bottom: 0.4em; }
.card .card-tag {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 0.6em;
}

/* --- Metric tiles ------------------------------------------- */

.metric {
  text-align: center;
  padding: 24px 12px;
}

.metric .metric-value {
  font-size: 2rem;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.metric .metric-label {
  font-size: 0.9rem;
  color: #555;
}

.band-dark .metric .metric-label { color: #c8c8c8; }

/* Inline snapshot row (Mission) */
.snapshot {
  font-size: 1rem;
  text-align: center;
  line-height: 1.8;
}
.snapshot .num { font-weight: 700; font-size: 1.15rem; }
.snapshot .sep { color: #999; margin: 0 0.5em; }

/* --- Quote block -------------------------------------------- */

.quote-block {
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.5;
  text-align: center;
  margin: 0 auto;
  max-width: 760px;
}

.quote-block .attribution {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: 0.9rem;
  color: #666;
}

.band-dark .quote-block .attribution { color: #c8c8c8; }

/* Inline / pullquote inside text columns */
.pullquote {
  border-left: 3px solid #bbbbbb;
  padding: 4px 0 4px 18px;
  margin: 16px 0 16px 16px;
  font-style: italic;
  color: #444;
}

/* --- Three-stage journey (Theory of Change) ----------------- */

.journey {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.journey-stage {
  border: 1px solid #999;
  padding: 24px;
  text-align: center;
  font-weight: 600;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.journey-arrow { font-size: 1.5rem; color: #666; }

@media (max-width: 768px) {
  .journey { grid-template-columns: 1fr; }
  .journey-arrow { transform: rotate(90deg); justify-self: center; }
}

/* --- Header ------------------------------------------------- */

.site-header {
  border-bottom: 1px solid #dddddd;
  background: #ffffff;
  position: relative;
  z-index: 100;
}

.site-header .header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.site-header .nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 22px;
  align-items: center;
}

.site-header .nav.left  { justify-content: flex-end; }
.site-header .nav.right { justify-content: flex-start; }

.site-header .nav a,
.site-header .nav summary {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #222;
  cursor: pointer;
}

.site-header .logo {
  border: 1px solid #bbbbbb;
  background: #eeeeee;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: #222;
}

.site-header details { position: relative; }

.site-header details > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.site-header details > summary::-webkit-details-marker { display: none; }

.site-header details > summary::after {
  content: "▾";
  font-size: 0.7em;
}

.site-header details[open] > .dropdown-menu {
  display: block;
}

.site-header .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid #cccccc;
  padding: 12px 0;
  margin-top: 8px;
  min-width: 220px;
  list-style: none;
  z-index: 200;
}

.site-header .dropdown-menu li { margin: 0; }

.site-header .dropdown-menu a {
  display: block;
  padding: 8px 18px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-header .dropdown-menu a:hover { background: #f0f0f0; }

.site-header .lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Mobile header */
.site-header .menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid #bbb;
  padding: 8px 12px;
  font-size: 0.85rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .site-header .header-inner {
    grid-template-columns: 1fr auto;
    padding: 12px 16px;
  }
  .site-header .nav.left,
  .site-header .nav.right { display: none; }
  .site-header .menu-toggle { display: inline-block; }
  .site-header.open .nav.left,
  .site-header.open .nav.right {
    display: flex;
    flex-direction: column;
    grid-column: 1 / -1;
    width: 100%;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid #ddd;
    padding-top: 8px;
    margin-top: 8px;
  }
  .site-header.open .nav.left a,
  .site-header.open .nav.right a,
  .site-header.open .nav summary {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
  }
  .site-header .dropdown-menu {
    position: static;
    transform: none;
    border: none;
    padding: 0 0 8px 16px;
    margin: 0;
    min-width: 0;
  }
}

/* --- Footer ------------------------------------------------- */

.site-footer {
  border-top: 1px solid #dddddd;
  background: #f7f7f7;
  padding: 48px 0 0;
  margin-top: 64px;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr 1fr;
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-footer .block-title {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 8px;
  font-weight: 700;
}

.site-footer p { font-size: 0.9rem; line-height: 1.5; }

.site-footer .badge {
  display: inline-block;
  border: 1px solid #bbb;
  background: #eee;
  padding: 8px 12px;
  font-size: 0.75rem;
  color: #555;
  margin-top: 8px;
  margin-right: 8px;
}

.site-footer .social {
  display: flex;
  gap: 14px;
  justify-content: center;
  padding: 24px 0 16px;
  border-top: 1px solid #e0e0e0;
  margin-top: 32px;
}

.site-footer .social .icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dddddd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #555;
  text-decoration: none;
}

.site-footer .legal {
  text-align: center;
  font-size: 0.75rem;
  color: #666;
  padding: 12px 16px 24px;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
}

/* --- Forms (visual only, non-functional) -------------------- */

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
}

.field {
  display: block;
  width: 100%;
  border: 1px solid #bbbbbb;
  background: #ffffff;
  padding: 14px 16px;
  font: inherit;
  color: #222;
}

.field:focus { outline: 2px solid #888; outline-offset: -2px; }

textarea.field { min-height: 140px; resize: vertical; }

.amount-picker {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.amount-picker .amount {
  border: 1.5px solid #222;
  padding: 12px 22px;
  background: transparent;
  font-weight: 600;
  cursor: pointer;
}

.amount-picker .amount.selected {
  background: #222;
  color: #fff;
}

.recurring-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  font-size: 0.9rem;
}

/* --- Misc helpers ------------------------------------------- */

.note {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}

.divider {
  border: none;
  border-top: 1px solid #dddddd;
  margin: 32px 0;
}

.kicker {
  display: inline-block;
  font-weight: 700;
  margin-bottom: 8px;
}

.numbered {
  display: inline-block;
  font-weight: 700;
  margin-right: 6px;
}

/* App store buttons (placeholder treatment) */
.appstores {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.appstores .store {
  border: 1.5px solid #222;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: #222;
}

/* Pillars header strip used on Home ecosystem section */
.pillar-lead {
  font-weight: 700;
  margin-bottom: 8px;
}

/* Filter chips (legacy News page — kept for reference; not used) */
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chip {
  border: 1px solid #bbb;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  text-decoration: none;
  color: #444;
}
.chip.active { background: #222; color: #fff; border-color: #222; }
