/* whatismypurpose.org — global styles
   Palette: warm cream + deep indigo + amber gold
   Type:    Fraunces (serif) + Inter (sans)
*/

:root {
  --bg:        #faf6ef;
  --bg-warm:   #f4ecdb;
  --card:      #ffffff;
  --ink:       #1a1b3a;
  --ink-soft:  #2e2f52;
  --muted:     #6b6a75;
  --line:      #e5dfd0;
  --brand:     #b8863a;      /* warm amber */
  --brand-hi:  #d4a24f;
  --brand-dk:  #8b6420;
  --success:   #2f7a4f;
  --danger:    #b1352e;
  --shadow-sm: 0 1px 2px rgba(26,27,58,.06);
  --shadow-md: 0 8px 24px rgba(26,27,58,.08);
  --shadow-lg: 0 24px 60px rgba(26,27,58,.12);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --wrap: 1160px;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: 'Fraunces', 'Playfair Display', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100vw;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dk); text-decoration: none; }
a:hover { color: var(--brand); }
p { margin: 0 0 1em; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.3vw, 1.5rem); }
h4 { font-size: 1.1rem; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  color: var(--brand-dk);
  font-weight: 600;
  margin: 0 0 .8rem;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }

/* Layout */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
section { padding: 84px 0; }
section.tight { padding: 56px 0; }
.center { text-align: center; margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) {
  section { padding: 56px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 14px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 246, 239, .82);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; gap: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 600; font-size: 1.15rem;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--brand-dk); }
.brand-mark { color: var(--brand); display: inline-flex; }
.brand-text { letter-spacing: -0.01em; }

.site-nav {
  display: flex; align-items: center; gap: 22px;
}
.site-nav a {
  color: var(--ink-soft); font-size: .96rem; font-weight: 500;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--brand); }
.site-nav .btn { border-bottom: 0 !important; }

.nav-toggle {
  display: none; width: 40px; height: 40px; background: none; border: 0; cursor: pointer;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch;
    padding: 12px 22px 22px; gap: 8px;
    transform: translateY(-6px); opacity: 0; pointer-events: none;
    transition: all .18s ease;
  }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; margin-top: 8px; }
  .site-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; color: #fff; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, var(--brand-hi) 0%, var(--brand) 60%, var(--brand-dk) 100%); color: #fff; box-shadow: var(--shadow-sm); }
.btn-gold:hover { color: #fff; box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { color: var(--ink); background: rgba(26,27,58,.05); }
.btn-lg { font-size: 1.08rem; padding: 18px 34px; }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn-block { display: flex; width: 100%; }

/* Cards */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.card-lg { padding: 40px; border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
.card + .card { margin-top: 16px; }

/* Hero */
.hero {
  position: relative;
  padding: 90px 0 60px;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(212,162,79,.16), transparent 60%),
    radial-gradient(900px 400px at -10% 20%, rgba(26,27,58,.06), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero-inner {
  display: grid; gap: 40px;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
}
.hero-copy .eyebrow { color: var(--brand-dk); }
.hero-copy h1 { margin-bottom: .3em; }
.hero-copy h1 em {
  font-style: italic; color: var(--brand-dk);
  background: linear-gradient(180deg, transparent 62%, rgba(184,134,58,.22) 62%);
  padding: 0 .12em;
}
.hero-lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 52ch; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-signals { margin-top: 26px; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .95rem; flex-wrap: wrap; }
.stars { color: var(--brand); letter-spacing: 1px; }
.hero-visual {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #efe6cf, #f8eeda);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-badge {
  position: absolute; left: 20px; bottom: 20px;
  background: rgba(255,255,255,.94); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; font-size: .85rem; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot { width: 8px; height: 8px; background: var(--brand); border-radius: 50%; }
@media (max-width: 900px) {
  .hero { padding-top: 56px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin-inline: auto; }
}

/* Steps */
.step-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--shadow-sm); position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-hi), var(--brand-dk));
  color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1.15rem;
  margin-bottom: 18px;
}
.step-card h3 { margin-bottom: .35em; }
.step-card p { color: var(--muted); }
.step-image { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1/1; margin-top: 20px; background: var(--bg-warm); }
.step-image img { width: 100%; height: 100%; object-fit: cover; }

/* Feature list */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .fi { flex-shrink: 0; width: 34px; height: 34px; border-radius: 999px; background: rgba(184,134,58,.14); color: var(--brand-dk); display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 600; }
.feature-list h4 { margin: 0 0 4px; font-family: var(--sans); font-size: 1.02rem; font-weight: 600; }
.feature-list p  { margin: 0; color: var(--muted); font-size: .96rem; }

/* Report preview mock */
.preview-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 34px; box-shadow: var(--shadow-md);
  position: relative;
}
.preview-tag {
  position: absolute; top: -12px; left: 22px;
  background: var(--ink); color: #fff; font-size: .78rem; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; letter-spacing: .05em;
}
.preview-statement {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  line-height: 1.3; color: var(--ink); margin: 6px 0 24px;
}
.preview-statement::before, .preview-statement::after { color: var(--brand); }

/* Testimonials */
.quote {
  background: var(--bg-warm); border-radius: var(--r-lg); padding: 32px;
  border-left: 3px solid var(--brand); font-family: var(--serif);
  font-size: 1.2rem; line-height: 1.45; color: var(--ink);
}
.quote-cite { display: block; margin-top: 16px; font-family: var(--sans); font-size: .92rem; color: var(--muted); font-style: normal; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden;
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item > summary {
  list-style: none; cursor: pointer; padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 600; font-family: var(--serif); font-size: 1.1rem;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: '+'; font-size: 1.6rem; font-family: var(--serif); color: var(--brand);
  transition: transform .2s ease;
}
.faq-item[open] > summary::after { content: '−'; }
.faq-body { padding: 0 24px 24px; color: var(--muted); }

/* CTA banner */
.cta-band {
  background: linear-gradient(135deg, #1a1b3a 0%, #2e2f52 100%);
  color: #fff; border-radius: var(--r-xl); padding: 60px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 240px at 80% 0%, rgba(212,162,79,.35), transparent 60%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 60ch; margin: 0 auto 24px; }
.cta-band .btn-gold { color: #fff; }

/* Footer */
.site-footer {
  background: #1a1b3a;
  color: rgba(255,255,255,.72);
  margin-top: 80px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.site-footer .brand,
.site-footer .brand-text { color: #fff; }
.site-footer .brand-mark { color: var(--brand); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 50px; padding: 60px 22px 40px;
}
.footer-tag { color: rgba(255,255,255,.62); margin-top: 8px; max-width: 42ch; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-col h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,.72); padding: 4px 0; font-size: .96rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0; color: rgba(255,255,255,.5); font-size: .85rem;
}
@media (max-width: 780px) {
  .footer-inner { grid-template-columns: 1fr; gap: 30px; padding-top: 44px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
}

/* Utility */
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.hidden { display: none !important; }

/* Toast */
.toast {
  position: fixed; z-index: 200; left: 50%; bottom: 30px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px;
  box-shadow: var(--shadow-lg); font-size: .95rem;
  opacity: 0; pointer-events: none; transition: all .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, -6px); }

/* Focus */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
