/* ==========================================================================
   WealthPulse Daily — stylesheet
   Palette : pine-teal / brass / cool oat paper
   Type    : Newsreader (display)  +  IBM Plex Sans (UI & body)
   ========================================================================== */

:root {
  --paper:      #F5F6F3;
  --paper-2:    #FFFFFF;
  --ink:        #0F2E2B;
  --teal:       #14514C;
  --teal-soft:  #E4EBE8;
  --brass:      #B07D2B;
  --brass-soft: #F3EADA;
  --rise:       #2F7D5B;
  --fall:       #A6432F;
  --muted:      #5C6B66;
  --line:       #D9DDD6;
  --line-soft:  #E8EBE5;

  --wrap: 1140px;
  --gutter: 24px;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --step--1: clamp(0.80rem, 0.78rem + 0.10vw, 0.86rem);
  --step-0:  clamp(1.00rem, 0.97rem + 0.15vw, 1.09rem);
  --step-1:  clamp(1.18rem, 1.10rem + 0.35vw, 1.38rem);
  --step-2:  clamp(1.45rem, 1.30rem + 0.70vw, 1.85rem);
  --step-3:  clamp(1.85rem, 1.55rem + 1.30vw, 2.60rem);
  --step-4:  clamp(2.30rem, 1.80rem + 2.20vw, 3.60rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p  { margin: 0 0 1.15em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 720px; }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- top strip ---------- */
.strip {
  background: var(--ink); color: #CFDBD6;
  font-size: var(--step--1); letter-spacing: .01em;
}
.strip .wrap { display: flex; gap: 1rem; justify-content: space-between; align-items: center; min-height: 38px; flex-wrap: wrap; }
.strip a { color: #CFDBD6; }
.strip .stamp { color: #8FA8A0; }

/* ---------- masthead ---------- */
.masthead { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.brand-name span { color: var(--brass); }
.brand-sub { display: block; font-family: var(--sans); font-size: .66rem; letter-spacing: .16em; color: var(--muted); margin-top: 3px; }

.nav-toggle {
  margin-left: auto; display: none; background: none; border: 1px solid var(--line);
  padding: .5rem .8rem; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; border-radius: 3px;
}

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 500;
  padding: .35rem 0; display: block; border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--line); color: var(--teal); }
.nav a[aria-current="page"] { border-bottom-color: var(--brass); }

/* ---------- rate board (hero) ---------- */
.board { background: var(--ink); color: #EDF2F0; padding: 3.2rem 0 0; position: relative; overflow: hidden; }
.board-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: end; }
.board h1 { color: #fff; font-size: var(--step-4); margin-bottom: .35em; }
.board .lede { color: #B9CCC6; font-size: var(--step-1); max-width: 34ch; margin-bottom: 1.4rem; line-height: 1.5; }
.board-cta { display: flex; gap: .8rem; flex-wrap: wrap; padding-bottom: 3rem; }

.pulse-line { position: absolute; inset: auto 0 0 0; height: 60px; opacity: .5; pointer-events: none; }
.pulse-line path { fill: none; stroke: var(--brass); stroke-width: 1.5; }
.pulse-line .trace { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 3.2s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.rates { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 3px; padding: 1.25rem 1.4rem 1.4rem; margin-bottom: 3rem; }
.rates-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,.14); padding-bottom: .6rem; margin-bottom: .3rem; }
.rates-head h2 { font-size: 1.05rem; color: #fff; margin: 0; font-family: var(--sans); font-weight: 600; letter-spacing: .01em; }
.rates-head .stamp { font-size: .72rem; color: #8FA8A0; }
.rate-row { display: grid; grid-template-columns: 1fr auto auto; gap: .8rem; align-items: baseline; padding: .62rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.rate-row:last-child { border-bottom: 0; padding-bottom: 0; }
.rate-name { font-size: .88rem; color: #C6D6D1; }
.rate-val { font-family: var(--serif); font-size: 1.5rem; font-variant-numeric: tabular-nums; color: #fff; line-height: 1; }
.rate-chg { font-size: .76rem; font-variant-numeric: tabular-nums; min-width: 58px; text-align: right; }
.up   { color: #7FC9A2; }
.down { color: #E39C8B; }
.flat { color: #8FA8A0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font: inherit; font-size: .95rem; font-weight: 500;
  padding: .78rem 1.5rem; border-radius: 3px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: #96691F; color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.3); color: #EDF2F0; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--teal); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: .5rem 1rem; font-size: .86rem; }

/* ---------- sections ---------- */
.section { padding: 4rem 0; }
.section-tight { padding: 2.6rem 0; }
.section-tight + .section-tight { padding-top: 0; }
.section-white { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 2rem; }
.section-head p { color: var(--muted); margin: 0; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- decision paths ---------- */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-bottom: 0; background: var(--paper-2); }
.path:nth-child(3n) { border-right: 0; }
.path {
  padding: 1.7rem 1.5rem; text-decoration: none; color: var(--ink);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .4rem; transition: background .15s;
}
.path:hover { background: var(--teal-soft); color: var(--ink); }
.path-icon { color: var(--brass); }
.path h3 { font-size: 1.22rem; margin: .2rem 0 0; }
.path p { font-size: .9rem; color: var(--muted); margin: 0; }
.path-meta { font-size: .78rem; color: var(--teal); margin-top: auto; padding-top: .8rem; font-weight: 500; }

/* ---------- article lists ---------- */
.feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.feature-lead { border-left: 3px solid var(--brass); padding-left: 1.6rem; }
.feature-lead h3 { font-size: var(--step-3); margin-bottom: .35em; }
.feature-lead p { color: var(--muted); font-size: var(--step-1); line-height: 1.55; }

.kicker { font-size: .78rem; color: var(--brass); font-weight: 600; letter-spacing: .04em; margin-bottom: .5rem; }
.byline { font-size: .8rem; color: var(--muted); }

.stack { list-style: none; margin: 0; padding: 0; }
.stack li { border-top: 1px solid var(--line); padding: 1.15rem 0; }
.stack li:first-child { border-top: 0; padding-top: 0; }
.stack h4 { margin: 0 0 .3rem; font-size: 1.16rem; line-height: 1.25; }
.stack a { text-decoration: none; color: var(--ink); }
.stack a:hover { color: var(--teal); text-decoration: underline; }
.stack p { font-size: .89rem; color: var(--muted); margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.card { background: var(--paper-2); border: 1px solid var(--line); padding: 1.5rem; }
.card h3 { font-size: 1.3rem; }
.card p:last-child { margin-bottom: 0; }

/* ---------- comparison table ---------- */
.table-note {
  background: var(--brass-soft); border-left: 3px solid var(--brass);
  padding: 1rem 1.2rem; font-size: .9rem; margin-bottom: 1.5rem;
}
.table-note p:last-child { margin-bottom: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--paper-2); }
table.compare { width: 100%; border-collapse: collapse; min-width: 680px; font-size: .93rem; }
table.compare th, table.compare td { padding: .95rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.compare thead th { background: var(--teal-soft); font-weight: 600; font-size: .82rem; letter-spacing: .02em; color: var(--ink); border-bottom: 1px solid var(--line); }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare .num { font-variant-numeric: tabular-nums; font-family: var(--serif); font-size: 1.12rem; }
table.compare .product { font-weight: 600; }
table.compare .product small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; margin-top: .15rem; }

/* ---------- article body ---------- */
.article-head { padding: 3rem 0 2rem; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.article-head h1 { max-width: 26ch; font-size: var(--step-3); }
.hub-head h1 { font-size: var(--step-3); max-width: 24ch; }
.article-head .lede { font-size: var(--step-1); color: var(--muted); max-width: 60ch; line-height: 1.55; }
.article-meta { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; font-size: .82rem; color: var(--muted); margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.article-meta .dot { color: var(--line); }

.prose { max-width: 68ch; padding: 2.8rem 0 3.5rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-1); margin-top: 1.9em; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.3em; }
.prose li { margin-bottom: .55em; }
.prose blockquote {
  margin: 1.8em 0; padding: .2rem 0 .2rem 1.4rem; border-left: 3px solid var(--brass);
  font-family: var(--serif); font-size: var(--step-1); line-height: 1.5; color: var(--teal);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose figure { margin: 2em 0; }

.callout { background: var(--teal-soft); border: 1px solid var(--line); padding: 1.4rem 1.5rem; margin: 2em 0; }
.callout h4 { margin: 0 0 .5rem; font-size: 1.12rem; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 1.5em 0; }
.steps li { counter-increment: s; padding: 0 0 1.3rem 3rem; position: relative; margin: 0; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: .05rem;
  width: 2rem; height: 2rem; border: 1px solid var(--brass); color: var(--brass);
  font-family: var(--serif); font-size: 1rem; display: grid; place-items: center; border-radius: 50%;
}
.steps strong { display: block; margin-bottom: .15rem; }

.toc { background: var(--paper-2); border: 1px solid var(--line); padding: 1.3rem 1.5rem; margin-bottom: 2.5rem; }
.toc h2 { font-size: 1rem; font-family: var(--sans); font-weight: 600; margin: 0 0 .7rem; }
.toc ol { margin: 0; padding-left: 1.2rem; font-size: .92rem; }
.toc li { margin-bottom: .35em; }

/* ad slots — leave empty until AdSense is approved */
.ad-slot {
  margin: 2.5rem 0; min-height: 90px; display: grid; place-items: center;
  border: 1px dashed var(--line); color: #A9B3AE; font-size: .74rem; letter-spacing: .1em;
}

/* ---------- newsletter ---------- */
.signup { background: var(--teal); color: #fff; }
.signup .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding-block: 3.2rem; }
.signup h2 { color: #fff; margin-bottom: .3em; }
.signup p { color: #C4DAD6; margin: 0; }
.signup form { display: flex; gap: .6rem; flex-wrap: wrap; }
.signup input {
  flex: 1 1 220px; padding: .8rem 1rem; font: inherit; font-size: .95rem;
  border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: #fff; border-radius: 3px;
}
.signup input::placeholder { color: #A8C4BF; }
.signup input:focus { background: rgba(255,255,255,.16); }
.signup .fineprint { font-size: .78rem; color: #A8C4BF; margin-top: .8rem; width: 100%; }
.form-msg { font-size: .88rem; margin-top: .7rem; width: 100%; color: #C9F0DC; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #B9CCC6; padding: 3.2rem 0 2rem; font-size: .9rem; }
.footer a { color: #B9CCC6; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; }
.footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .55rem; }
.footer .brand-name { color: #fff; }
.footer .about { max-width: 34ch; line-height: 1.6; }
.footer-base { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.6rem; padding-top: 1.6rem; font-size: .82rem; color: #8FA8A0; }
.footer-base p { margin: 0 0 .7em; max-width: 90ch; }

/* ---------- misc ---------- */
.disclosure {
  font-size: .82rem; color: var(--muted); background: var(--paper-2);
  border: 1px solid var(--line); padding: .85rem 1.1rem; margin-bottom: 2rem;
}
.disclosure p { margin: 0; }
.crumbs { font-size: .82rem; color: var(--muted); padding: 1rem 0; }
.crumbs a { color: var(--muted); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brass); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: .9rem 0 0; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .board-grid, .feature, .signup .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .board { padding-top: 2.4rem; }
  .rates { margin-bottom: 2.4rem; }
  .board-cta { padding-bottom: 0; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; flex-basis: 100%; margin: 0 0 1rem; }
  .nav.open { display: block; }
  .masthead .wrap { flex-wrap: wrap; padding-block: .9rem; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: .75rem 0; border-bottom: 1px solid var(--line-soft); }
  .path { border-right: 0; }
  .section { padding: 2.8rem 0; }
  .feature-lead { padding-left: 1.1rem; }
}
@media (max-width: 760px) { .paths { grid-template-columns: repeat(2, 1fr); } .path:nth-child(2n) { border-right: 0; } }
@media (max-width: 560px) {
  .rate-row { grid-template-columns: 1fr auto; row-gap: .15rem; }
  .rate-chg { grid-column: 2; }
  .rate-val { font-size: 1.32rem; }
  .paths { grid-template-columns: 1fr; }
  .path:nth-child(3n) { border-right: 0; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .strip .wrap { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .pulse-line .trace { stroke-dashoffset: 0; }
}

@media print {
  .strip, .nav, .signup, .ad-slot, .footer { display: none; }
  body { background: #fff; }
}
