/* Wealth Simulate — marketing site stylesheet
   Mobile-first. Two breakpoints: 640px (tablet), 960px (desktop). */

:root {
  --ink: #1c2a24;
  --paper: #fdfbf6;
  --bg: #f3efe6;
  --brand: #1c6b4f;
  --brand-dark: #154f3b;
  --brand-tint: #e7f0ea;
  --gold: #c98a3a;
  --gold-dark: #b87b2f;
  --muted: #5a6a60;
  --muted-2: #8a9a8f;
  --muted-3: #a9b3ac;
  --border: rgba(28, 42, 36, 0.1);
  --border-strong: rgba(28, 42, 36, 0.2);
  --dark: #1c2a24;
  --dark-card: #243830;
  --error: #c0503f;
  --font-serif: 'Newsreader', serif;
  --font-sans: 'IBM Plex Sans', sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
}

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

a { color: inherit; }

h1, h2, h3, p { margin: 0; }

button, input, textarea { font-family: inherit; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: 999px;
  padding: 13px 24px;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-primary { background: var(--brand); color: var(--paper); }
.btn-primary:hover { background: var(--brand-dark); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--ink);
}
.btn-outline:hover { background: var(--paper); }

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-dark); }

.btn-white {
  background: #fff;
  border: 1px solid var(--border-strong);
  color: var(--ink);
}
.btn-white:hover { background: #f7f4ee; }

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: default; }

.link-accent {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
}

/* ---------- Navbar ---------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex: none;
}

.brand-wordmark { display: flex; flex-direction: column; line-height: 1; }
.brand-wealth { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: 18px; color: var(--ink); }
.brand-simulate { font-family: var(--font-sans); font-weight: 700; font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); }
.brand img.brand-logo-img { height: 32px; width: auto; }

.footer .brand-wealth { color: var(--paper); }
.footer .brand-simulate { color: var(--gold); }

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
}

.nav-links a { text-decoration: none; font-size: 14.5px; color: var(--ink); font-weight: 500; }
.nav-links a.active { color: var(--brand); font-weight: 600; }

.nav-actions {
  display: none;
  align-items: center;
  gap: 16px;
  flex: none;
}

.nav-actions a.link-login { text-decoration: none; font-size: 14.5px; color: var(--ink); font-weight: 500; }

.mobile-toggle {
  display: inline-flex;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  flex: none;
}

.mobile-menu {
  border-top: 1px solid var(--border);
  padding: 16px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--paper);
}

.mobile-menu a { text-decoration: none; color: var(--ink); font-size: 15px; }
.mobile-menu .mobile-divider { height: 1px; background: var(--border); margin: 4px 0; }
.mobile-menu .btn { text-align: center; }
.mobile-menu[hidden] { display: none; }

@media (min-width: 820px) {
  .nav-links, .nav-actions { display: flex; }
  .mobile-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Footer ---------- */

.footer {
  background: var(--dark);
  color: #e7e2d4;
  margin-top: auto;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.footer-about { max-width: 320px; }
.footer-about p { font-size: 13.5px; line-height: 1.6; color: var(--muted-3); margin-top: 14px; }
.footer-parent-company { margin-top: 6px !important; font-size: 12.5px !important; color: var(--muted-2) !important; }

.footer-col-title { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #e7e2d4; text-decoration: none; font-size: 14px; }

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 20px 32px;
  border-top: 1px solid rgba(231, 226, 212, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted-2);
}

@media (min-width: 820px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* ---------- Hero / sections ---------- */

main { display: block; }

.section { padding: 56px 0; }
.section-tight { padding: 40px 0; }
.section-dark { background: var(--dark); padding: 56px 0; }
.section-paper { background: var(--paper); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 56px 0; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 7px 16px;
  border-radius: 999px;
}

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.12;
  max-width: 820px;
}

.hero h1 em { font-style: italic; color: var(--brand); }

.hero-sub { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 600px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

.hero-shot {
  width: 100%;
  max-width: 920px;
  margin-top: 16px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(28, 42, 36, 0.14);
  border: 1px solid rgba(28, 42, 36, 0.08);
}

.image-placeholder {
  width: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(135deg, #efe9dc, #efe9dc 10px, #e7e0d0 10px, #e7e0d0 20px);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 24px;
}

@media (min-width: 820px) {
  .hero h1 { font-size: 52px; }
  .hero-sub { font-size: 18px; }
}

/* ---------- Page headers (interior pages) ---------- */

.page-header {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 20px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.page-header h1 { font-family: var(--font-serif); font-weight: 500; font-size: 34px; line-height: 1.14; }
.page-header p { font-size: 16px; color: var(--muted); line-height: 1.6; max-width: 560px; }

@media (min-width: 820px) {
  .page-header h1 { font-size: 46px; }
  .page-header p { font-size: 17px; }
}

/* ---------- Grids ---------- */

.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 16px; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

.card-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  margin-bottom: 8px;
}

.card-title { font-size: 15.5px; font-weight: 600; margin-bottom: 6px; }
.card-text { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.card-link { text-decoration: none; color: inherit; display: block; transition: border-color 0.15s ease; }
.card-link:hover { border-color: var(--brand); }

.card-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}

/* ---------- Section heads ---------- */

.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.section-head h2, .section-head-row h2 { font-family: var(--font-serif); font-weight: 500; font-size: 26px; }
.section-head p, .section-head-row p { color: var(--muted); font-size: 15px; max-width: 460px; }

.section-head-center { text-align: center; align-items: center; }

@media (min-width: 820px) {
  .section-head h2, .section-head-row h2 { font-size: 32px; }
}

/* ---------- Timeline chart (illustrative SVG) ---------- */

.chart-block { max-width: 820px; margin: 0 auto 56px; }
.chart-block h2 { font-family: var(--font-serif); font-weight: 500; font-size: 26px; color: var(--paper); text-align: center; margin-bottom: 8px; }
.chart-block .chart-caption { text-align: center; color: var(--muted-3); font-size: 14px; margin-bottom: 24px; }
.chart-legend { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 16px; }
.chart-legend span { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #d7ddd8; }
.chart-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.chart-disclaimer { text-align: center; font-size: 12px; color: #6f8078; margin-top: 14px; }

@media (min-width: 820px) {
  .chart-block h2 { font-size: 30px; }
}

/* ---------- Steps ---------- */

.steps-wrap { max-width: 1180px; margin: 56px auto 0; }
.steps-wrap h2 { font-family: var(--font-serif); font-weight: 500; font-size: 28px; color: var(--paper); text-align: center; margin-bottom: 12px; }
.steps-wrap > p { text-align: center; color: var(--muted-3); font-size: 15px; max-width: 520px; margin: 0 auto 40px; }
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.step-num { font-family: var(--font-serif); font-style: italic; font-size: 30px; color: var(--gold); }
.step-title { font-size: 16px; font-weight: 600; color: var(--paper); margin: 10px 0 8px; }
.step-text { font-size: 13.5px; line-height: 1.6; color: var(--muted-3); }

@media (min-width: 960px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Numbered rows (How It Works page) */
.row-steps { display: flex; flex-direction: column; }
.row-step { display: flex; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.row-step:last-child { border-bottom: none; }
.row-step-num { font-family: var(--font-serif); font-style: italic; font-size: 32px; color: var(--gold); flex: none; width: 56px; }
.row-step-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.row-step-text { font-size: 14px; line-height: 1.65; color: var(--muted); max-width: 600px; }

@media (min-width: 640px) {
  .row-step-num { width: 70px; font-size: 40px; }
  .row-step-title { font-size: 19px; }
  .row-step-text { font-size: 14.5px; }
}

.worked-example { display: flex; flex-direction: column; gap: 16px; }
.worked-example .dark-card { background: var(--dark-card); border-radius: 12px; padding: 20px 22px; }
.worked-example .dark-card-label { font-size: 13px; font-weight: 600; color: var(--gold); margin-bottom: 6px; }
.worked-example .dark-card-text { font-size: 14px; line-height: 1.6; color: #d7ddd8; }

/* ---------- Pricing ---------- */

.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.price-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.price-card--featured { background: var(--dark); border-color: var(--dark); color: var(--paper); }
.price-name { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.price-amount { font-family: var(--font-serif); font-size: 30px; margin-bottom: 4px; }
.price-amount span { font-size: 13px; color: var(--muted); font-weight: 400; }
.price-card--featured .price-amount span { color: var(--muted-3); }
.price-note { font-size: 12.5px; color: var(--muted-2); }
.price-card--featured .price-note { color: var(--muted-3); }
.price-card--featured .price-name { color: var(--gold); }
.badge-popular {
  position: absolute;
  top: -11px;
  left: 22px;
  background: var(--gold);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.price-features { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: #4a5850; border-top: 1px solid rgba(28, 42, 36, 0.08); padding-top: 16px; }
.price-card--featured .price-features { color: #d7ddd8; border-top-color: rgba(231, 226, 212, 0.12); }

@media (min-width: 960px) {
  .pricing-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Home compact pricing preview */
.pricing-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pricing-preview-card { background: var(--bg); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.pricing-preview-card--featured { background: var(--dark); color: var(--paper); }
.pricing-preview-card--featured .price-name { color: var(--gold); }

@media (min-width: 960px) {
  .pricing-preview-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- FAQ ---------- */

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-sans);
}
.faq-question span:first-child { font-size: 15px; font-weight: 600; color: var(--ink); }
.faq-sign { font-size: 20px; color: var(--brand); flex: none; line-height: 1; }
.faq-answer { margin: 0; padding: 0 20px 18px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.faq-answer[hidden] { display: none; }

/* ---------- CTA sections ---------- */

.cta-block {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-block h2 { font-family: var(--font-serif); font-weight: 500; font-size: 28px; }

@media (min-width: 820px) {
  .cta-block h2 { font-size: 32px; }
}

/* ---------- Forms ---------- */

.form-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-card-header { text-align: center; margin-bottom: 6px; }
.form-card-header h1 { font-family: var(--font-serif); font-weight: 500; font-size: 24px; margin-bottom: 8px; }
.form-card-header p { font-size: 14px; color: var(--muted); }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group-row { display: flex; justify-content: space-between; align-items: baseline; }
.form-group label { font-size: 13px; font-weight: 600; }
.form-group label .optional { color: var(--muted-2); font-weight: 400; }

.form-group input,
.form-group textarea {
  font-size: 14.5px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #fff;
}
.form-group textarea { resize: vertical; }

.form-error { font-size: 12.5px; color: var(--error); min-height: 16px; }

.divider { display: flex; align-items: center; gap: 12px; margin: 2px 0; }
.divider-line { flex: 1; height: 1px; background: var(--border-strong); }
.divider span { font-size: 12px; color: var(--muted-2); }

.form-footnote { text-align: center; font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }
.form-fineprint { text-align: center; font-size: 12px; color: var(--muted-2); margin: 4px 0 0; line-height: 1.5; }

.form-success { text-align: center; padding: 30px 8px; display: flex; flex-direction: column; gap: 10px; }
.form-success .check { font-size: 32px; }
.form-success .title { font-size: 16px; font-weight: 600; }
.form-success p { font-size: 13.5px; color: var(--muted); }
.form-success[hidden] { display: none; }

@media (min-width: 640px) {
  .form-card { padding: 36px; }
}

/* ---------- Contact split layout ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 56px 0 72px; }
.contact-info h1 { font-family: var(--font-serif); font-weight: 500; font-size: 32px; margin-bottom: 16px; line-height: 1.15; }
.contact-info > p { font-size: 15px; line-height: 1.7; color: var(--muted); max-width: 420px; margin-bottom: 28px; }
.contact-item { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.contact-item .label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.contact-item .value { font-size: 15px; }

@media (min-width: 820px) {
  .contact-grid { grid-template-columns: 1fr 1fr; padding: 72px 0 88px; }
  .contact-info h1 { font-size: 40px; }
}

/* ---------- Legal pages ---------- */

.legal-content { display: flex; flex-direction: column; gap: 24px; font-size: 14.5px; line-height: 1.75; color: #3f4b45; }
.legal-content h2 { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.legal-updated { font-size: 13px; color: var(--muted-2); margin-bottom: 32px; }
.legal-title { font-family: var(--font-serif); font-weight: 500; font-size: 32px; margin-bottom: 8px; }

/* ---------- Mission / About ---------- */

.mission-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 28px; padding: 0 20px; }
.mission-col .label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.mission-col p { font-family: var(--font-serif); font-size: 19px; line-height: 1.5; color: var(--paper); font-style: italic; }

@media (min-width: 820px) {
  .mission-grid { grid-template-columns: 1fr 1fr; }
}

.belief-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.belief-title { font-size: 15.5px; font-weight: 600; margin-bottom: 10px; }
.belief-text { font-size: 14px; line-height: 1.65; color: var(--muted); }

@media (min-width: 820px) {
  .belief-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.max-prose { max-width: 700px; margin: 0 auto; }
.max-prose p { font-size: 16px; line-height: 1.75; color: #3f4b45; margin-bottom: 18px; }
.max-prose p:last-child { margin-bottom: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
