/* Advocora Marketing — shared styles */

:root {
  --cream: #FAF1E4;
  --cream-2: #F5E7D2;
  --cream-3: #EFE0C8;
  --paper: #FFFFFF;
  --ink: #16202E;
  --ink-2: #2B3548;
  --ink-3: #4B5566;
  --muted: #7A8190;
  --coral: #E07A52;
  --coral-2: #C9603A;
  --coral-soft: #F8DCC9;
  --sage: #8F9F7E;
  --sage-soft: #D8DECD;
  --olive: #B0A05C;
  --border: #E7D9BE;
  --border-2: #D9C8A8;
  --shadow-sm: 0 1px 2px rgba(22,32,46,0.04), 0 1px 1px rgba(22,32,46,0.03);
  --shadow-md: 0 8px 32px -8px rgba(22,32,46,0.10), 0 2px 6px rgba(22,32,46,0.04);
  --shadow-lg: 0 24px 60px -20px rgba(22,32,46,0.20), 0 8px 16px -8px rgba(22,32,46,0.08);
  --serif: "Newsreader", "Source Serif 4", Georgia, serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }

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

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.wrap-wide { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 32px; }

section { padding: 120px 0; position: relative; }
section.tight { padding: 80px 0; }
section.snug { padding: 56px 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 241, 228, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(231, 217, 190, 0.6);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  max-width: 1400px; margin: 0 auto;
}
.nav-logo {
  display: inline-flex; align-items: center;
  text-decoration: none;
}
.nav-logo img { height: 28px; width: auto; display: block; }
.foot-brand .nav-logo img { height: 32px; }
.nav-links {
  display: flex; align-items: center; gap: 36px;
  font-size: 15px;
  color: var(--ink-2);
  font-weight: 500;
}
.nav-links a:hover { color: var(--coral); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, color 120ms ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--coral);
  color: white;
}
.btn-primary:hover { background: var(--coral-2); }
.btn-dark {
  background: var(--ink);
  color: var(--cream);
}
.btn-dark:hover { background: #0c1420; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-2);
}
.btn-ghost:hover { background: rgba(22,32,46,0.04); }
.btn-link {
  background: transparent;
  color: var(--coral);
  padding: 12px 0;
  border-radius: 0;
}
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral-2);
  font-weight: 500;
}
.eyebrow.muted { color: var(--muted); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(48px, 7.2vw, 96px); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -0.02em; }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
h4 { font-size: 19px; line-height: 1.3; font-family: var(--sans); font-weight: 700; letter-spacing: -0.005em; }

p { margin: 0; text-wrap: pretty; }
.lede { font-size: 21px; line-height: 1.5; color: var(--ink-3); max-width: 38em; }
.lede-sm { font-size: 18px; line-height: 1.55; color: var(--ink-3); }

em.serif-em { font-style: italic; color: var(--coral-2); font-family: var(--serif); }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 40px; }
.hero-grid {
  display: flex; flex-direction: column; gap: 56px;
  align-items: flex-start;
}
.hero h1 { max-width: 14ch; }
.hero h1 em { font-style: italic; color: var(--coral); }
.hero-sub { margin-top: 24px; }
.hero-ctas { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  display: flex; gap: 18px; align-items: center;
}
.hero-meta b { color: var(--ink-2); font-weight: 600; }

/* ---------- Window frame for screenshots ---------- */
.frame {
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.frame-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #FCF5EA, #F5E7D2);
  border-bottom: 1px solid var(--border);
}
.frame-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #E7D9BE; }
.frame-bar .dot:nth-child(1) { background: #E07A52; }
.frame-bar .dot:nth-child(2) { background: #DEC56B; }
.frame-bar .dot:nth-child(3) { background: #A0B58A; }
.frame-bar .url {
  margin-left: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.frame img { display: block; width: 100%; }
.frame-tilt {
  transform: perspective(2400px) rotateX(2deg);
  transform-origin: center top;
}

/* ---------- Hero collage ---------- */
.hero-stage {
  position: relative;
  width: 100%;
  margin-top: 48px;
}
.hero-stage .frame { width: 100%; }
.hero-stage .float {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: var(--paper);
}
.hero-stage .float-1 {
  width: 28%;
  right: -2%;
  bottom: -8%;
}
.hero-stage .float-2 {
  width: 22%;
  left: -2%;
  top: 10%;
  display: none;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 32px;
}
.trust-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.trust-logos {
  display: flex; gap: 40px; flex-wrap: wrap; align-items: center;
}
.trust-logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-2);
  opacity: 0.78;
  letter-spacing: -0.01em;
}
.trust-logo .sub { font-family: var(--sans); font-style: normal; font-size: 11px; color: var(--muted); display: block; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Section header ---------- */
.section-head {
  display: flex; flex-direction: column; gap: 18px;
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head .lede { font-size: 19px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }

/* ---------- Spotlight (image+text) ---------- */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 80px;
  align-items: center;
}
.spotlight.reverse { grid-template-columns: 1.25fr 1fr; }
.spotlight.reverse .spotlight-copy { order: 2; }
.spotlight-copy { display: flex; flex-direction: column; gap: 20px; }
.spotlight-copy h2 { margin-top: 6px; }
.spotlight-copy ul {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: flex; flex-direction: column; gap: 14px;
}
.spotlight-copy ul li {
  display: flex; gap: 14px;
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.5;
}
.spotlight-copy ul li::before {
  content: "";
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--coral-soft);
  border: 2px solid var(--coral);
  margin-top: 4px;
}

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.bento-cell {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}
.bento-cell h4 { font-size: 22px; font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
.bento-cell p { color: var(--ink-3); font-size: 15px; line-height: 1.5; }
.bento-cell.dark { background: var(--ink); color: var(--cream); border-color: transparent; }
.bento-cell.dark h4 { color: var(--cream); }
.bento-cell.dark p { color: rgba(250, 241, 228, 0.7); }
.bento-cell.coral { background: var(--coral); color: white; border-color: transparent; }
.bento-cell.coral h4 { color: white; }
.bento-cell.coral p { color: rgba(255,255,255,0.85); }
.bento-cell .badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-2);
}
.bento-cell.dark .badge, .bento-cell.coral .badge { color: rgba(255,255,255,0.7); }
.col-3 { grid-column: span 3; }
.col-2 { grid-column: span 2; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }

/* Bento illustration area */
.bento-illu { margin-top: auto; padding-top: 16px; }

/* Donor garden mini */
.garden-mini {
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  gap: 4px;
}
.garden-mini span {
  aspect-ratio: 1; border-radius: 3px;
  background: rgba(255,255,255,0.08);
}
.garden-mini span.c1 { background: #D4B564; }
.garden-mini span.c2 { background: #A8B89D; }
.garden-mini span.c3 { background: #E07A52; }
.garden-mini span.c4 { background: #8B6F5C; }

/* Pulse line */
.pulse-line {
  height: 40px;
  display: flex; align-items: flex-end; gap: 3px;
}
.pulse-line span {
  flex: 1;
  background: var(--coral);
  border-radius: 2px;
  opacity: 0.85;
}

/* ---------- Integrations strip ---------- */
.integ {
  background: var(--ink);
  color: var(--cream);
  border-radius: 28px;
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.integ h2 { color: var(--cream); }
.integ .lede { color: rgba(250,241,228,0.7); }
.integ-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.integ-card {
  background: rgba(250, 241, 228, 0.04);
  border: 1px solid rgba(250, 241, 228, 0.10);
  border-radius: 14px;
  padding: 22px 22px;
  display: flex; flex-direction: column; gap: 8px;
}
.integ-card .ic-logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--cream);
  letter-spacing: -0.01em;
}
.integ-card .ic-kind {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250,241,228,0.5);
}
.integ-card .ic-desc { font-size: 14px; color: rgba(250,241,228,0.7); line-height: 1.45; }

/* ---------- Coming soon ---------- */
.coming {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.coming-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.coming-card .stamp {
  position: absolute; top: 24px; right: 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--cream-2);
  color: var(--olive);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.coming-card h4 { font-family: var(--serif); font-weight: 500; font-size: 24px; }
.coming-card p { color: var(--ink-3); font-size: 15px; }
.coming-card ul { margin: 0; padding-left: 18px; color: var(--ink-3); font-size: 14px; line-height: 1.7; }

/* ---------- CTA panel ---------- */
.cta-panel {
  background: var(--ink);
  color: var(--cream);
  border-radius: 28px;
  padding: 80px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-panel h2 { color: var(--cream); max-width: 18ch; margin: 0 auto; }
.cta-panel .lede { color: rgba(250,241,228,0.7); margin: 24px auto 0; }
.cta-panel .cta-buttons { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-panel .btn-primary { background: var(--coral); }
.cta-panel .btn-ghost { color: var(--cream); border-color: rgba(250,241,228,0.25); }
.cta-panel .btn-ghost:hover { background: rgba(250,241,228,0.08); }
.cta-deco {
  position: absolute; pointer-events: none;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224,122,82,0.25), transparent 65%);
  top: -200px; right: -200px;
}

/* ---------- Footer ---------- */
footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
  background: var(--cream-2);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.foot-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
  font-weight: 600;
}
.foot-col a { display: block; padding: 6px 0; color: var(--ink-2); font-size: 15px; }
.foot-col a:hover { color: var(--coral); }
.foot-brand { display: flex; flex-direction: column; gap: 12px; max-width: 22em; }
.foot-brand .tag { font-family: var(--serif); font-style: italic; color: var(--ink-3); font-size: 17px; }
.foot-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border-2);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--muted);
}

/* Slim footer (current pages) */
.foot-slim { padding: 56px 0 32px; }
.foot-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.foot-legal {
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
}
.foot-legal a { color: var(--ink-3); }
.foot-legal a:hover { color: var(--coral); }
.foot-slim .foot-bottom { margin-top: 36px; }

/* Conservative States card */
.cs-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.cs-logo-wrap {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  display: flex; align-items: center; justify-content: center;
}
.cs-logo-wrap img { max-width: 100%; height: auto; max-height: 84px; display: block; }
@media (max-width: 1024px) {
  .cs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .foot-top { flex-direction: column; align-items: flex-start; }
}

/* ---------- Small bits ---------- */
.kbd {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--cream-2);
  border: 1px solid var(--border);
}

.divider-marquee {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 5vw, 56px);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  padding: 80px 0 0;
}
.divider-marquee em { color: var(--coral); font-style: italic; }
.divider-marquee .mute { color: var(--muted); }

/* Built-for chips */
.builtfor {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 24px;
}
.chip {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--border);
  color: var(--ink-2);
}
.chip.coral { background: var(--coral-soft); border-color: transparent; color: var(--coral-2); }
.chip.sage { background: var(--sage-soft); border-color: transparent; color: #5C6B4E; }
.chip.ink { background: var(--ink); color: var(--cream); border-color: transparent; }

/* Stat row */
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat .num {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.stat .num em { color: var(--coral); font-style: normal; }
.stat .label {
  margin-top: 12px;
  font-size: 15px; color: var(--ink-3);
  max-width: 24ch;
}

/* Responsive */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .col-3, .col-2 { grid-column: span 2; }
  .col-4 { grid-column: span 4; }
  .col-6 { grid-column: span 4; }
  .spotlight, .spotlight.reverse { grid-template-columns: 1fr; gap: 40px; }
  .spotlight.reverse .spotlight-copy { order: 0; }
  .integ { grid-template-columns: 1fr; padding: 48px 32px; }
  .coming { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 80px 0; }
}

@media (max-width: 720px) {
  .wrap, .wrap-wide { padding: 0 20px; }
  .nav-links { display: none; }
  .bento { grid-template-columns: 1fr; }
  .col-3, .col-2, .col-4, .col-6 { grid-column: span 1; }
  .stat-row { grid-template-columns: 1fr; }
  .cta-panel { padding: 56px 28px; }
  .integ { padding: 36px 24px; }
  .integ-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
}
