/* Founder Activation System — private preview styles
   Warm off-white + soft pastels + impressionistic brush accents */

:root {
  --bg: #f7f2ea;
  --bg-elevated: #fffdf8;
  --ink: #2c2924;
  --ink-soft: #5a544c;
  --muted: #7a7368;
  --line: rgba(44, 41, 36, 0.10);
  --blush: #e8c4b8;
  --sage: #c5d5c0;
  --sky: #c9d4e8;
  --sand: #e6d5a8;
  --lilac: #d9c4e8;
  --breaker: #c56b4a;
  --diamond: #5e74a8;
  --snowballer: #4f8a7b;
  --herder: #7a5a96;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(44, 41, 36, 0.07);
  --max: 1120px;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 8% -10%, rgba(232, 196, 184, 0.28), transparent 60%),
    radial-gradient(900px 500px at 92% 8%, rgba(197, 213, 192, 0.30), transparent 55%),
    radial-gradient(800px 500px at 70% 100%, rgba(201, 212, 232, 0.25), transparent 50%),
    var(--bg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--diamond); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--breaker); }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Impressionistic wash behind hero */
.brush-field {
  position: absolute; inset: -10% -5% auto -5%; height: 28rem;
  background: url("../assets/brush-strokes.svg") center / cover no-repeat;
  opacity: 0.55; pointer-events: none; z-index: 0;
}
.hero, .page-hero, .cta-band, .card, .arch-hero { position: relative; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247, 242, 234, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .9rem 0;
}
.brand {
  display: flex; flex-direction: column; gap: .1rem;
  color: inherit; text-decoration: none;
}
.brand strong {
  font-family: var(--serif); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em;
}
.brand span { font-size: .78rem; color: var(--muted); }
.nav {
  display: flex; flex-wrap: wrap; gap: .15rem .9rem; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .95rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .cta {
  background: var(--ink); color: #fffdf8 !important;
  padding: .45rem .9rem; border-radius: 999px; text-decoration: none;
}
.nav .cta:hover { background: var(--breaker); }

/* Preview banner */
.preview-banner {
  background: linear-gradient(90deg, rgba(232,196,184,.45), rgba(201,212,232,.45));
  border-bottom: 1px solid var(--line);
  font-size: .85rem; color: var(--ink-soft);
  padding: .55rem 0; text-align: center;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
.lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 42rem;
}
.eyebrow {
  display: inline-block;
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .75rem; font-weight: 600;
}
.kicker { color: var(--muted); font-size: .92rem; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; border-radius: 999px; padding: .7rem 1.2rem;
  text-decoration: none; font-weight: 600; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fffdf8; }
.btn-primary:hover { background: var(--breaker); color: #fff; }
.btn-ghost {
  background: rgba(255,253,248,.7); color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: #fff; color: var(--ink); }

/* Layout sections */
.section { padding: 4.25rem 0; }
.section.tight { padding: 2.75rem 0; }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.grid-2 {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-4 {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid-3 {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding-bottom: .75rem; }
  .nav-row { flex-wrap: wrap; }
  .menu-toggle { display: inline-flex !important; }
}

.menu-toggle {
  display: none; background: transparent; border: 1px solid var(--line);
  border-radius: 999px; padding: .4rem .8rem; color: var(--ink);
}

/* Cards */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; top: -40px; right: -30px; width: 140px; height: 90px;
  background: radial-gradient(circle at 30% 40%, rgba(232,196,184,.55), transparent 70%);
  pointer-events: none;
}
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card a.card-link {
  text-decoration: none; color: inherit; display: block; height: 100%;
}
.card a.card-link:hover h3 { color: var(--breaker); }
.tone-breaker { border-top: 4px solid var(--breaker); }
.tone-diamond { border-top: 4px solid var(--diamond); }
.tone-snowballer { border-top: 4px solid var(--snowballer); }
.tone-herder { border-top: 4px solid var(--herder); }

.icon-mark {
  width: 3.2rem; height: 3.2rem; margin-bottom: .85rem;
}

/* Hero */
.hero {
  padding: 4.5rem 0 3rem;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; max-width: 44rem; }
.page-hero {
  padding: 3.2rem 0 1.5rem; overflow: hidden;
}
.page-hero .brush-field { height: 18rem; opacity: .4; }

/* Archetype detail */
.arch-hero {
  display: grid; gap: 2rem;
  grid-template-columns: 1.2fr .8fr;
  align-items: start;
  padding: 2rem 0 1rem;
}
@media (max-width: 800px) { .arch-hero { grid-template-columns: 1fr; } }
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.pill {
  border-radius: 999px; padding: .3rem .7rem; font-size: .85rem;
  background: rgba(255,253,248,.8); border: 1px solid var(--line);
}
.pill.up { background: rgba(197,213,192,.45); }
.pill.down { background: rgba(232,196,184,.4); }
.split {
  display: grid; gap: 1rem; grid-template-columns: 1fr 1fr;
}
@media (max-width: 700px) { .split { grid-template-columns: 1fr; } }
.panel {
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem 1.3rem;
}
.panel.good { background: linear-gradient(180deg, rgba(197,213,192,.28), var(--bg-elevated)); }
.panel.warn { background: linear-gradient(180deg, rgba(232,196,184,.28), var(--bg-elevated)); }
.panel h3 { font-size: 1.05rem; margin-bottom: .55rem; }
.meta-list { list-style: none; padding: 0; margin: 0; }
.meta-list li {
  padding: .65rem 0; border-bottom: 1px solid var(--line);
  display: grid; gap: .15rem;
}
.meta-list li:last-child { border-bottom: 0; }
.meta-list strong { color: var(--ink); font-size: .92rem; }
.meta-list span { color: var(--ink-soft); font-size: .95rem; }

/* Prose articles */
.prose { max-width: 42rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { color: var(--ink-soft); padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose blockquote {
  margin: 1.4rem 0; padding: 1rem 1.2rem;
  border-left: 3px solid var(--blush);
  background: rgba(255,253,248,.7);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
  font-family: var(--serif); font-size: 1.15rem;
}
.source-note {
  margin-top: 2rem; padding: 1rem 1.15rem;
  background: rgba(201,212,232,.28); border-radius: var(--radius);
  font-size: .9rem; color: var(--ink-soft);
}

/* CTA */
.cta-band {
  margin: 1rem 0 3rem; padding: 2.2rem;
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(135deg, rgba(232,196,184,.35), rgba(201,212,232,.35)),
    var(--bg-elevated);
  border: 1px solid var(--line);
  overflow: hidden;
}
.cta-band .brush-field { opacity: .35; height: 100%; inset: 0; }

/* Testimonials / quotes — only public site quotes */
.quote {
  font-family: var(--serif); font-size: 1.15rem; color: var(--ink);
  margin: 0 0 .8rem;
}
.quote-attr { font-size: .9rem; color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  color: var(--muted); font-size: .92rem;
}
.footer-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1.4fr 1fr 1fr;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--breaker); }
.site-footer ul { list-style: none; padding: 0; margin: .5rem 0 0; }
.site-footer li { margin: .3rem 0; }
.fineprint { margin-top: 2rem; font-size: .8rem; color: var(--muted); }

/* Utility */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}


/* Production a11y polish */
a:focus-visible, button:focus-visible, .btn:focus-visible, .menu-toggle:focus-visible {
  outline: 3px solid #5e74a8;
  outline-offset: 3px;
}
:root {
  --muted: #6a6358;
  --ink-soft: #4f4a43;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
