/* The Annuity Agency — site-wide CSS (V2 Wall Street system) */

:root {
  --navy: #0A1F44;
  --navy-deep: #061534;
  --gold: #D4A93A;
  --gold-bright: #E8C04A;
  --off-white: #F8F6F0;
  --paper: #FBFAF5;
  --slate: #2E3A4B;
  --ink: #0F1622;
  --muted: #5C6675;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Inter', system-ui, sans-serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Source Serif 4', serif; font-weight: 600; letter-spacing: -0.5px; line-height: 1.15; margin: 0; }
.wordmark, .footer-wordmark, .step-title, .results-interim h3, .icp-col h3, .founder-name, summary, .turn, .big-idea, .pullquote, .post-title, .post-card h3 { font-weight: 600; }
p { margin: 0 0 16px; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }

/* ----- NAV ----- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251,250,245,0.96); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(10,31,68,0.1); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.wordmark { font-family: 'Source Serif 4', serif; font-size: 26px; color: var(--navy); display: flex; align-items: center; gap: 0; letter-spacing: -0.5px; }
.wordmark .pipe { display: inline-block; width: 2px; height: 22px; background: var(--gold); margin: 0 12px; }
.nav-links { display: flex; gap: 32px; align-items: center; font-size: 13.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.nav-links a { color: var(--navy); opacity: 0.7; transition: opacity 0.15s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.btn { display: inline-block; padding: 14px 26px; font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; transition: all 0.2s; cursor: pointer; border: none; font-family: 'Inter', sans-serif; }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-bright); }
.btn-secondary { background: transparent; color: var(--off-white); border: 1.5px solid var(--gold); padding: 12.5px 24.5px; }
.btn-secondary:hover { background: var(--gold); color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); padding: 12.5px 24.5px; }
.btn-outline:hover { background: var(--navy); color: var(--off-white); }
@media (max-width: 720px) { .nav-links { display: none; } .nav-inner .btn { padding: 10px 16px; } }

/* ----- SECTIONS ----- */
section { padding: 96px 0; }
.section-dark { background: var(--navy); color: var(--off-white); }
.section-dark h2, .section-dark h3 { color: var(--off-white); }
.section-light { background: var(--paper); color: var(--ink); }
.section-deep { background: var(--navy-deep); color: var(--off-white); }
.section-cream { background: var(--off-white); color: var(--ink); }
.section-eyebrow { font-size: 11px; letter-spacing: 5px; text-transform: uppercase; font-weight: 700; margin-bottom: 20px; color: var(--gold); padding-left: 32px; position: relative; display: inline-block; }
.section-eyebrow::before { content: ''; position: absolute; left: 0; top: 50%; width: 22px; height: 1px; background: var(--gold); }
h2 { font-size: 48px; margin-bottom: 24px; max-width: 800px; }
h2.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-sub { font-size: 18px; color: var(--muted); margin-bottom: 56px; max-width: 720px; }
.section-dark .section-sub { color: rgba(248,246,240,0.78); }
@media (max-width: 720px) { h2 { font-size: 34px; } section { padding: 64px 0; } }

/* ----- PAGE HEADER (used on inner pages) ----- */
.page-header { background: var(--navy); color: var(--off-white); padding: 96px 0 80px; position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(212,169,58,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(212,169,58,0.04) 1px, transparent 1px); background-size: 60px 60px; pointer-events: none; }
.page-header .eyebrow { font-size: 11px; letter-spacing: 5px; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 24px; padding-left: 32px; position: relative; display: inline-block; }
.page-header .eyebrow::before { content: ''; position: absolute; left: 0; top: 50%; width: 22px; height: 1px; background: var(--gold); }
.page-header h1 { font-size: 60px; margin-bottom: 24px; max-width: 880px; line-height: 1.05; color: var(--off-white); position: relative; }
.page-header .lede { font-size: 19px; color: rgba(248,246,240,0.85); max-width: 720px; line-height: 1.55; position: relative; margin: 0; }
@media (max-width: 720px) { .page-header { padding: 64px 0 56px; } .page-header h1 { font-size: 38px; } }

/* ----- BLOG INDEX ----- */
.posts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.post-card { background: var(--paper); border: 1px solid rgba(10,31,68,0.08); border-radius: 4px; padding: 40px 36px; transition: all 0.2s; display: block; }
.post-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 16px 40px -16px rgba(10,31,68,0.15); }
.post-card .meta { font-size: 12px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.post-card .meta .dot { display: inline-block; width: 4px; height: 4px; background: var(--gold); border-radius: 50%; margin: 0 10px; vertical-align: middle; }
.post-card h3 { font-family: 'Source Serif 4', serif; font-size: 26px; color: var(--navy); margin-bottom: 16px; line-height: 1.2; }
.post-card .excerpt { color: var(--muted); font-size: 15.5px; margin: 0 0 20px; line-height: 1.6; }
.post-card .read-more { font-size: 13px; color: var(--navy); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.post-card .read-more::after { content: ' →'; color: var(--gold); transition: margin-left 0.15s; }
.post-card:hover .read-more::after { margin-left: 4px; }
.post-card.featured { grid-column: 1 / -1; padding: 56px 56px; background: var(--navy); color: var(--off-white); border: none; }
.post-card.featured:hover { background: var(--navy-deep); }
.post-card.featured h3 { color: var(--off-white); font-size: 36px; max-width: 820px; }
.post-card.featured .meta { color: var(--gold); }
.post-card.featured .excerpt { color: rgba(248,246,240,0.85); font-size: 17px; max-width: 760px; }
.post-card.featured .read-more { color: var(--gold-bright); }
@media (max-width: 720px) { .posts-grid { grid-template-columns: 1fr; } .post-card.featured { padding: 40px 32px; } .post-card.featured h3 { font-size: 28px; } }

/* ----- POST PAGE ----- */
.post-header { background: var(--paper); padding: 80px 0 56px; border-bottom: 1px solid rgba(10,31,68,0.08); }
.post-header .meta { font-size: 12px; color: var(--gold); letter-spacing: 3px; text-transform: uppercase; font-weight: 700; margin-bottom: 20px; }
.post-header .meta .dot { display: inline-block; width: 4px; height: 4px; background: var(--muted); border-radius: 50%; margin: 0 10px; vertical-align: middle; opacity: 0.5; }
.post-title { font-family: 'Source Serif 4', serif; font-size: 52px; color: var(--navy); line-height: 1.1; max-width: 880px; letter-spacing: -1px; margin: 0 0 24px; }
.post-lede { font-size: 21px; color: var(--muted); line-height: 1.5; max-width: 720px; font-weight: 400; }
.post-byline { display: flex; align-items: center; gap: 14px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(10,31,68,0.08); }
.post-byline-img { width: 48px; height: 48px; border-radius: 50%; background: #ccc; object-fit: cover; }
.post-byline-name { font-size: 14px; font-weight: 700; color: var(--navy); }
.post-byline-role { font-size: 13px; color: var(--muted); }
.post-body { padding: 64px 0 96px; max-width: 760px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.post-body p { font-size: 18px; line-height: 1.75; color: #2a2f3a; margin: 0 0 24px; }
.post-body h2 { font-family: 'Source Serif 4', serif; font-size: 32px; color: var(--navy); margin: 56px 0 20px; line-height: 1.2; max-width: none; }
.post-body h3 { font-family: 'Source Serif 4', serif; font-size: 22px; color: var(--navy); margin: 40px 0 16px; font-weight: 600; }
.post-body strong { color: var(--navy); font-weight: 700; }
.post-body em { color: #2a2f3a; }
.post-body ul, .post-body ol { font-size: 18px; line-height: 1.75; color: #2a2f3a; padding-left: 24px; margin: 0 0 24px; }
.post-body ul li, .post-body ol li { margin-bottom: 10px; }
.post-body ul li::marker { color: var(--gold); }
.post-body blockquote { margin: 32px 0; padding: 28px 32px; background: var(--off-white); border-left: 4px solid var(--gold); font-family: 'Source Serif 4', serif; font-size: 22px; line-height: 1.5; color: var(--navy); font-style: italic; }
.post-body blockquote p { font-size: 22px; margin: 0; color: var(--navy); }
.post-body .callout { margin: 40px 0; padding: 32px; background: var(--navy); color: var(--off-white); border-left: 4px solid var(--gold); border-radius: 0; }
.post-body .callout p { color: rgba(248,246,240,0.95); font-size: 17px; margin: 0; line-height: 1.7; }
.post-body .callout strong { color: var(--gold-bright); }
.post-body .stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0; }
.post-body .stat-box { background: var(--off-white); padding: 24px 20px; border-top: 3px solid var(--gold); text-align: center; }
.post-body .stat-box .stat-num { font-family: 'Source Serif 4', serif; font-size: 36px; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 8px; letter-spacing: -1px; }
.post-body .stat-box .stat-label { font-size: 12px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; font-weight: 600; }
.post-body a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.post-body a:hover { color: var(--gold); }
.post-body hr { border: none; border-top: 1px solid rgba(10,31,68,0.15); margin: 56px 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 16px; }
.post-body table th { background: var(--navy); color: var(--off-white); padding: 14px 16px; text-align: left; font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.post-body table td { padding: 14px 16px; border-bottom: 1px solid rgba(10,31,68,0.08); }
.post-body table tr:nth-child(even) td { background: var(--off-white); }
@media (max-width: 720px) {
  .post-title { font-size: 34px; }
  .post-lede { font-size: 18px; }
  .post-body p, .post-body ul, .post-body ol { font-size: 17px; }
  .post-body h2 { font-size: 26px; }
  .post-body .stat-row { grid-template-columns: 1fr; }
}

/* ----- POST FOOTER CTA ----- */
.post-cta { background: var(--navy); color: var(--off-white); padding: 64px 32px; text-align: center; }
.post-cta h3 { font-family: 'Source Serif 4', serif; font-size: 32px; color: var(--off-white); margin: 0 0 16px; max-width: 720px; margin-left: auto; margin-right: auto; }
.post-cta p { color: rgba(248,246,240,0.85); max-width: 580px; margin: 0 auto 24px; font-size: 17px; }
.related-posts { padding: 72px 0; background: var(--off-white); }
.related-posts h4 { font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--muted); margin: 0 0 32px; font-weight: 700; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related-card { padding: 24px; background: var(--paper); border: 1px solid rgba(10,31,68,0.08); transition: all 0.2s; display: block; }
.related-card:hover { border-color: var(--gold); }
.related-card .meta { font-size: 11px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; font-weight: 600; margin-bottom: 10px; }
.related-card h5 { font-family: 'Source Serif 4', serif; font-size: 18px; color: var(--navy); margin: 0; line-height: 1.3; font-weight: 600; }
@media (max-width: 720px) { .related-grid { grid-template-columns: 1fr; } }

/* ----- ABOUT / DEEP FOUNDER ----- */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: start; }
.about-img-wrap { position: relative; max-width: 300px; }
.about-img-wrap::after { content: ''; position: absolute; bottom: -12px; right: -12px; width: 100%; height: 100%; background: var(--gold); z-index: 0; }
.about-img { width: 100%; height: auto; display: block; position: relative; z-index: 1; }
.about-creds { display: grid; gap: 20px; margin: 48px 0; padding: 32px 0; border-top: 1px solid rgba(10,31,68,0.15); border-bottom: 1px solid rgba(10,31,68,0.15); }
.about-creds .cred { display: grid; grid-template-columns: 90px 1fr; gap: 20px; align-items: center; }
.about-creds .stat { font-family: 'Source Serif 4', serif; font-size: 32px; color: var(--navy); font-weight: 700; line-height: 1; letter-spacing: -0.5px; }
.about-creds .label { font-size: 15.5px; color: var(--muted); }
.about-body p { font-size: 18px; line-height: 1.75; color: #2a2f3a; margin: 0 0 24px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }

/* ----- BOOK PAGE ----- */
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.book-info h2 { font-size: 38px; margin-bottom: 24px; }
.book-info p { font-size: 18px; line-height: 1.7; color: #2a2f3a; }
.book-checklist { margin: 32px 0; padding: 28px; background: var(--off-white); border-left: 3px solid var(--gold); }
.book-checklist h4 { font-family: 'Inter', sans-serif; font-size: 12px; color: var(--gold); letter-spacing: 3px; text-transform: uppercase; font-weight: 700; margin: 0 0 16px; }
.book-checklist ul { list-style: none; padding: 0; margin: 0; }
.book-checklist li { padding: 10px 0 10px 28px; position: relative; font-size: 15.5px; color: var(--ink); }
.book-checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.book-form { background: var(--off-white); padding: 48px; border-top: 4px solid var(--gold); }
.book-form h3 { font-family: 'Source Serif 4', serif; font-size: 28px; margin: 0 0 8px; color: var(--navy); font-weight: 600; }
.book-form .sub { font-size: 14px; color: var(--muted); margin-bottom: 32px; }
.book-form label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
.book-form input, .book-form select, .book-form textarea { width: 100%; padding: 14px 16px; border: 1px solid rgba(10,31,68,0.2); background: var(--paper); font-family: 'Inter', sans-serif; font-size: 16px; color: var(--ink); margin-bottom: 24px; transition: border-color 0.15s; }
.book-form input:focus, .book-form select:focus, .book-form textarea:focus { outline: none; border-color: var(--gold); }
.book-form textarea { resize: vertical; min-height: 100px; }
.book-form button { width: 100%; padding: 18px; background: var(--navy); color: var(--off-white); font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; border: none; cursor: pointer; transition: background 0.2s; }
.book-form button:hover { background: var(--gold); color: var(--navy); }
.book-form .privacy { font-size: 12px; color: var(--muted); text-align: center; margin: 16px 0 0; }
@media (max-width: 900px) { .book-grid { grid-template-columns: 1fr; gap: 48px; } .book-form { padding: 32px; } }

/* ----- FOOTER ----- */
footer { background: var(--navy-deep); color: rgba(248,246,240,0.65); padding: 72px 0 40px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 56px; margin-bottom: 56px; }
.footer-wordmark { font-family: 'Source Serif 4', serif; font-size: 28px; color: var(--off-white); margin-bottom: 14px; display: flex; align-items: center; }
.footer-wordmark .pipe { display: inline-block; width: 2px; height: 22px; background: var(--gold); margin: 0 12px; }
.footer-tag { font-size: 14px; color: var(--gold-bright); }
.footer-col h4 { font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-family: 'Inter', sans-serif; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a:hover { color: var(--off-white); }
.footer-bottom { padding-top: 32px; border-top: 1px solid rgba(248,246,240,0.08); display: flex; justify-content: space-between; font-size: 13px; flex-wrap: wrap; gap: 16px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 40px; } }

/* sticky mobile book button */
.sticky-book { display: none; position: fixed; bottom: 16px; right: 16px; z-index: 60; padding: 14px 24px; background: var(--gold); color: var(--navy); font-weight: 700; box-shadow: 0 12px 32px rgba(0,0,0,0.3); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }
@media (max-width: 720px) { .sticky-book { display: inline-block; } }
