/* ============================================================
   FinPlan — Guides (content pages) shared styles
   Mirrors the app's design tokens so the brand stays consistent.
   ============================================================ */
:root {
  --primary: #0F6E56;
  --primary-dark: #0B5642;
  --primary-soft: #E3EFEB;
  --accent: #BA7517;
  --accent-soft: #F6ECDC;
  --danger: #D85A30;
  --success: #3B6D11;
  --bg: #F8F7F4;
  --surface: #FFFFFF;
  --text: #2C2C2A;
  --text-2: #5F5E5A;
  --border: #E4E2DC;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'SF Mono', 'Fira Code', ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }

/* ---- Header ---- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-head .inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand .mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; letter-spacing: .02em;
}
.brand .name { font-weight: 800; font-size: 17px; }
.head-nav { display: flex; align-items: center; gap: 8px; }
.head-nav a { text-decoration: none; color: var(--text-2); font-weight: 600; font-size: 14px; padding: 8px 10px; border-radius: 6px; }
.head-nav a:hover { color: var(--text); background: var(--bg); }
.btn-cta {
  background: var(--primary); color: #fff !important;
  padding: 9px 15px !important; border-radius: var(--radius);
  font-weight: 700; white-space: nowrap;
  transition: background .15s, transform .15s;
}
.btn-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ---- Layout ---- */
.wrap { max-width: 740px; margin: 0 auto; padding: 0 24px; }
.breadcrumb { max-width: 740px; margin: 22px auto 0; padding: 0 24px; font-size: 13px; color: var(--text-2); }
.breadcrumb a { color: var(--text-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); text-decoration: underline; }
.breadcrumb .sep { margin: 0 7px; opacity: .6; }

/* ---- Article hero ---- */
.hero { padding: 18px 0 4px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.hero h1 { font-size: 38px; line-height: 1.15; letter-spacing: -.02em; margin: 10px 0 14px; text-wrap: balance; }
.hero .lead { font-size: 18px; color: var(--text-2); line-height: 1.6; }
.hero .meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; color: var(--text-2); }
.hero .meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ---- Prose ---- */
.prose { padding: 14px 0 8px; }
.prose h2 {
  font-size: 25px; letter-spacing: -.01em; margin: 38px 0 12px;
  padding-top: 14px; border-top: 1px solid var(--border); text-wrap: balance;
}
.prose h2:first-of-type { border-top: none; padding-top: 0; }
.prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--primary); font-weight: 700; }
.prose strong { font-weight: 700; }
.prose em { color: var(--text); }

/* Callout / key takeaway */
.callout {
  background: var(--primary-soft);
  border: 1px solid #C9DED7;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 22px 0;
}
.callout .k { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 5px; }
.callout p { margin: 0; }

/* Formula block */
.formula {
  font-family: var(--mono); font-size: 15px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; margin: 16px 0; overflow-x: auto;
}

/* In-article tool CTA */
.tool-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(100deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; border-radius: 12px; padding: 22px 24px; margin: 28px 0;
}
.tool-cta .t { font-size: 19px; font-weight: 800; margin-bottom: 3px; }
.tool-cta .s { font-size: 14px; color: rgba(255,255,255,.85); max-width: 46ch; }
.tool-cta a {
  flex: none; background: #fff; color: var(--primary-dark) !important; text-decoration: none;
  font-weight: 800; padding: 11px 18px; border-radius: var(--radius);
  transition: transform .15s, box-shadow .15s;
}
.tool-cta a:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.2); }

.disclaimer { font-size: 13px; color: var(--text-2); font-style: italic; }

/* ---- Related guides ---- */
.related { max-width: 980px; margin: 40px auto 0; padding: 0 24px; }
.related h2 { font-size: 20px; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gcard {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.gcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #C9DED7; }
.gcard .gc-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.gcard h3 { font-size: 16px; margin: 7px 0 6px; line-height: 1.3; }
.gcard p { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }

/* ---- Guides hub ---- */
.hub-hero { max-width: 740px; margin: 0 auto; padding: 40px 24px 8px; text-align: center; }
.hub-hero h1 { font-size: 40px; letter-spacing: -.02em; margin: 12px 0 14px; text-wrap: balance; }
.hub-hero .lead { font-size: 18px; color: var(--text-2); }
.hub-grid { max-width: 980px; margin: 28px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.hub-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.hub-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.07); border-color: #C9DED7; }
.hub-card .gc-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.hub-card h2 { font-size: 21px; margin: 9px 0 8px; line-height: 1.25; }
.hub-card p { font-size: 14.5px; color: var(--text-2); line-height: 1.55; flex: 1; }
.hub-card .more { margin-top: 14px; font-weight: 700; color: var(--primary); font-size: 14px; }

/* ---- Footer ---- */
.site-foot { border-top: 1px solid var(--border); margin-top: 56px; background: var(--surface); }
.site-foot .inner { max-width: 1080px; margin: 0 auto; padding: 28px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot .links { display: flex; gap: 16px; flex-wrap: wrap; }
.site-foot a { color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 600; }
.site-foot a:hover { color: var(--primary); }
.site-foot .fine { font-size: 12.5px; color: var(--text-2); max-width: 52ch; }

@media (max-width: 760px) {
  .hero h1 { font-size: 30px; }
  .hub-hero h1 { font-size: 30px; }
  .related-grid { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: 1fr; }
  .head-nav a:not(.btn-cta) { display: none; }
}
