/* =====================================================================
   Money That Matters — Design system & homepage styles
   ---------------------------------------------------------------------
   Structure
     1. Tokens            8. Advisor          15. Footer
     2. Base / reset      9. Categories       16. Search dialog
     3. Typography       10. Article cards    17. Sub-pages
     4. Layout helpers   11. Worth section    18. Affiliate components
     5. Buttons & pills  12. Money tools      19. Motion / reveal
     6. Header & nav     13. About            20. Print
     7. Hero             14. Newsletter
   No external fonts or frameworks: system font stacks keep the page fast
   and avoid third-party requests.
   ===================================================================== */

/* 1. TOKENS ---------------------------------------------------------- */
:root {
  --ink: #202428;
  --ink-2: #3A4148;
  --muted: #545B61;
  --green: #247A49;
  --green-dark: #1B5E38;
  --green-tint: #E6F0E9;
  --green-tint-2: #D4E6DA;
  --paper: #FAFAF7;
  --surface: #FFFFFF;
  --gray: #F0F2F0;
  --line: #DEE2DE;
  --line-strong: #C9CFC9;
  --gold: #C49A45;
  --gold-ink: #8A6A25;
  --gold-tint: #F6EEDC;
  --on-dark: #FAFAF7;
  --on-dark-muted: #C3C9C5;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, "Bitstream Charter", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(32, 36, 40, .06), 0 1px 1px rgba(32, 36, 40, .04);
  --shadow: 0 2px 4px rgba(32, 36, 40, .04), 0 10px 24px -6px rgba(32, 36, 40, .12);
  --shadow-lg: 0 4px 8px rgba(32, 36, 40, .05), 0 24px 48px -12px rgba(32, 36, 40, .22);

  --container: 1200px;
  --gutter: clamp(1.125rem, 4vw, 2rem);
  --section-y: clamp(4rem, 8vw, 6.5rem);
  --header-h: 118px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. BASE ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--green-dark); }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
kbd { font-family: var(--sans); }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
.advisor :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--ink); color: var(--on-dark); padding: .75rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--on-dark); }

/* 3. TYPOGRAPHY ------------------------------------------------------ */
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 0 0 .9rem;
  font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.eyebrow--on-dark { color: var(--gold); }

.section-title { font-size: clamp(1.9rem, 2.4vw + 1rem, 2.75rem); }
.section-lede { font-size: 1.2rem; color: var(--muted); max-width: 40ch; }

.text-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; text-decoration: none; color: var(--green);
}
.text-link .icon { width: 1.05em; height: 1.05em; transition: transform .2s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }
.text-link:hover { text-decoration: underline; }

/* 4. LAYOUT HELPERS -------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head__aside { max-width: 36ch; color: var(--muted); margin: 0; }

.notice {
  display: flex; gap: .75rem; align-items: flex-start;
  margin: -1rem 0 2rem; padding: .9rem 1.1rem;
  background: var(--gold-tint); border: 1px solid #E8D8B4; border-radius: var(--radius-sm);
  font-size: .95rem; color: var(--ink-2);
}
.notice .icon { color: var(--gold-ink); margin-top: .15rem; }
.noscript-list { padding-left: 1.2rem; }

/* 5. BUTTONS & PILLS ------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 44px; padding: .7rem 1.25rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); color: #fff; box-shadow: 0 6px 16px -6px rgba(36, 122, 73, .55); }
.btn--outline { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.btn--lg { min-height: 52px; padding: .85rem 1.6rem; font-size: 1.0625rem; }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: .9375rem; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .22rem .6rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.pill--green { background: var(--green-tint); color: var(--green-dark); }
.pill--gold { background: var(--gold-tint); color: var(--gold-ink); }
.pill--neutral { background: var(--gray); color: var(--muted); }
.tag { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot--green { background: var(--green); }
.dot--gold { background: var(--gold); }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink);
}
.icon-btn:hover { background: var(--gray); }

/* 6. HEADER & NAV ---------------------------------------------------- */
.utility-bar { background: var(--ink); color: var(--on-dark-muted); font-size: .82rem; }
.utility-bar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 36px; }
.utility-bar p { margin: 0; }
.utility-bar a { color: var(--on-dark); text-decoration: underline; text-decoration-color: rgba(250, 250, 247, .35); }
.utility-bar a:hover { color: #fff; text-decoration-color: var(--gold); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 247, .94);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 18px -12px rgba(32, 36, 40, .35); }

.header-main { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; }

.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 40px; height: 40px; border-radius: 10px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.32rem; letter-spacing: -.01em; }
.brand__tagline { margin-top: .2rem; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: .75rem; }

.search-trigger {
  display: inline-flex; align-items: center; gap: .6rem;
  min-width: 250px; height: 42px; padding: 0 .55rem 0 .9rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: .92rem; text-align: left;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search-trigger:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.search-trigger__label { flex: 1; }
.search-trigger__kbd {
  display: inline-grid; place-items: center; width: 24px; height: 24px;
  border: 1px solid var(--line); border-radius: 6px; font-size: .78rem; color: var(--muted); background: var(--paper);
}

.menu-toggle {
  display: none; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink);
}
.menu-toggle .icon { width: 22px; height: 22px; grid-area: 1 / 1; }
.menu-toggle .icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .icon--open { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }

.primary-nav { border-top: 1px solid var(--line); }
.primary-nav__list { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.primary-nav__list a {
  position: relative; display: block; padding: .8rem .85rem;
  color: var(--ink-2); font-size: .95rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.primary-nav__list li:first-child a { padding-left: 0; }
.primary-nav__list a::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: -1px; height: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.primary-nav__list li:first-child a::after { left: 0; }
.primary-nav__list a:hover { color: var(--ink); }
.primary-nav__list a:hover::after, .primary-nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav__list a[aria-current="page"] { color: var(--ink); }

@media (max-width: 1080px) {
  :root { --header-h: 71px; }
  .menu-toggle { display: inline-grid; }
  .primary-nav {
    position: absolute; inset: 100% 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .primary-nav.is-open { display: block; animation: drop .2s var(--ease); }
  .primary-nav__list { flex-direction: column; gap: 0; padding: .5rem 0 1rem; }
  .primary-nav__list li + li { border-top: 1px solid var(--line); }
  .primary-nav__list a, .primary-nav__list li:first-child a { padding: .95rem 0; font-size: 1.05rem; }
  .primary-nav__list a::after { display: none; }
  .primary-nav__list a[aria-current="page"] { color: var(--green); }
}
@media (max-width: 860px) {
  .search-trigger { min-width: 0; width: 44px; height: 44px; padding: 0; justify-content: center; }
  .search-trigger__label, .search-trigger__kbd { display: none; }
}
@media (max-width: 600px) {
  .header-cta { display: none; }
  .brand__tagline { display: none; }
  .brand__name { font-size: 1.15rem; }
  .brand__mark { width: 36px; height: 36px; }
  .utility-bar p { display: none; }
  .utility-bar__inner { justify-content: flex-end; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* 7. HERO ------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(4rem, 8vw, 6.5rem);
  background:
    radial-gradient(1200px 500px at 85% 0%, rgba(36, 122, 73, .06), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.hero__title { font-size: clamp(2.75rem, 4.6vw + 1rem, 4.6rem); line-height: 1.02; letter-spacing: -.025em; margin-bottom: 1.4rem; }
.hero__lede { font-size: clamp(1.15rem, .5vw + 1rem, 1.32rem); color: var(--muted); max-width: 34ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.25rem; }
.hero__points { list-style: none; margin: 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .55rem; }
.hero__points li { display: flex; align-items: center; gap: .6rem; font-size: .97rem; color: var(--ink-2); }
.hero__points .icon { color: var(--green); stroke-width: 2.25; width: 1.1em; height: 1.1em; }

.hero__visual { position: relative; }
.collage {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
}
.collage__tile {
  position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2;
  background: var(--gray); box-shadow: var(--shadow-sm); border: 1px solid rgba(32, 36, 40, .06);
}
.collage__tile--main { grid-column: 1 / -1; }
.collage__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.collage__tile:hover img { transform: scale(1.03); }
.collage__tile figcaption {
  position: absolute; left: 10px; top: 10px;
  padding: .25rem .6rem; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--ink-2);
  font-size: .72rem; font-weight: 700; letter-spacing: .03em;
}
.collage__tile--main figcaption { left: 14px; top: 14px; font-size: .78rem; }

.cost-card {
  position: absolute; right: -20px; top: -24px; width: min(270px, 50%);
  padding: 1.1rem 1.2rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.cost-card__label { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; margin-bottom: .75rem; }
.cost-card__row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: .6rem; font-size: .8rem; color: var(--muted); font-weight: 600; margin-bottom: .5rem; }
.cost-card__bar { height: 10px; background: var(--gray); border-radius: 999px; overflow: hidden; }
.cost-card__bar i { display: block; height: 100%; width: var(--w); background: var(--line-strong); border-radius: inherit; }
.cost-card__bar--total i { background: var(--green); }
.cost-card__note { margin-top: .7rem; font-size: .74rem; color: var(--muted); line-height: 1.4; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__lede { max-width: 46ch; }
  .cost-card { position: relative; right: auto; top: auto; width: 100%; grid-column: 1 / -1; box-shadow: var(--shadow-sm); }
}
@media (max-width: 480px) {
  .collage__tile:not(.collage__tile--main) figcaption { display: none; }
  .hero__actions .btn { width: 100%; }
}

/* 8. ADVISOR --------------------------------------------------------- */
.advisor { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.advisor::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(250, 250, 247, .06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 55%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 55%);
}
.advisor__grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.advisor .section-title { color: var(--on-dark); margin-bottom: 1rem; }
.advisor .section-lede { color: var(--on-dark-muted); margin-bottom: 2rem; }
.advisor__steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.advisor__steps li { counter-increment: step; position: relative; padding-left: 3rem; color: var(--on-dark-muted); }
.advisor__steps li strong { color: var(--on-dark); display: block; }
.advisor__steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2rem; height: 2rem; display: grid; place-items: center;
  border: 1.5px solid rgba(196, 154, 69, .6); color: var(--gold); border-radius: 50%;
  font-family: var(--serif); font-weight: 700; font-size: .95rem;
}

.advisor-panel {
  background: var(--surface); color: var(--ink); border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); overflow: hidden;
}
.advisor-panel__head { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.advisor-panel__head .pill { margin-left: auto; }
.advisor-panel__avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--green-tint); color: var(--green); }
.advisor-panel__title { margin: 0; font-weight: 700; line-height: 1.2; }
.advisor-panel__subtitle { margin: 0; font-size: .8rem; color: var(--muted); }
.advisor-panel__log { display: flex; flex-direction: column; gap: .85rem; padding: 1.25rem; min-height: 180px; max-height: 360px; overflow-y: auto; background: var(--paper); }
.advisor-panel__prompts { display: flex; flex-wrap: wrap; gap: .5rem; padding: 1rem 1.25rem 0; }
.advisor-panel__noscript { padding: 0 1.25rem 1.25rem; color: var(--muted); font-size: .9rem; }

.chip {
  padding: .45rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: .87rem; font-weight: 500; color: var(--ink-2); text-align: left;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.chip:hover { border-color: var(--green); color: var(--green-dark); background: var(--green-tint); }

.msg { max-width: 92%; font-size: .95rem; line-height: 1.55; animation: msg-in .3s var(--ease); }
.msg p { margin: 0; }
.msg--user { align-self: flex-end; background: var(--green); color: #fff; padding: .7rem 1rem; border-radius: 16px 16px 4px 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--notice, .msg--assistant {
  align-self: flex-start; display: flex; gap: .65rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); padding: .85rem 1rem; border-radius: 16px 16px 16px 4px;
}
.msg--notice .icon { color: var(--gold-ink); margin-top: .1rem; }
.msg__body { display: grid; gap: .6rem; }
.msg__links { display: grid; gap: .35rem; list-style: none; padding: 0; margin: 0; }
.msg__links a { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; text-decoration: none; }
.msg__links a:hover { text-decoration: underline; }
.msg__links .icon { width: 1em; height: 1em; }
.msg__meta { font-size: .78rem; color: var(--muted); }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.advisor-form { padding: 1rem 1.25rem 1.25rem; }
.advisor-form textarea {
  display: block; width: 100%; resize: vertical; min-height: 88px; padding: .85rem 1rem;
  border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); line-height: 1.5;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.advisor-form textarea::placeholder { color: #7A8187; }
.advisor-form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(36, 122, 73, .14); }
.advisor-form__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .75rem; }
.advisor-form__hint { margin: 0; font-size: .8rem; color: var(--muted); }

@media (max-width: 960px) {
  .advisor__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .advisor-panel__head { flex-wrap: wrap; }
  .advisor-panel__head .pill { margin-left: 0; }
  .advisor-form__bar { flex-direction: column; align-items: stretch; }
}

/* 9. CATEGORIES ------------------------------------------------------ */
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.category-card {
  position: relative; display: flex; flex-direction: column;
  padding: 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green-tint-2); }
.category-card:focus-within { box-shadow: var(--shadow); border-color: var(--green); }
.category-card__icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.25rem;
  border-radius: 14px; background: var(--green-tint); color: var(--green);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.category-card__icon .icon { width: 26px; height: 26px; }
.category-card:hover .category-card__icon { background: var(--green); color: #fff; }
.category-card__title { font-size: 1.35rem; margin-bottom: .5rem; }
.category-card__title a { color: inherit; text-decoration: none; }
.category-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.category-card__title a:focus-visible { outline: none; }
.category-card p { color: var(--muted); font-size: .97rem; flex: 1; }
.category-card__link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-weight: 600; font-size: .93rem; color: var(--green); }
.category-card__link .icon { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.category-card:hover .category-card__link .icon { transform: translateX(4px); }

@media (max-width: 960px) { .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .category-grid { grid-template-columns: 1fr; } .category-card { padding: 1.4rem; } }

/* 10. ARTICLE CARDS -------------------------------------------------- */
.guides { background: var(--surface); border-block: 1px solid var(--line); }
.article-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
}
.article-card { position: relative; display: flex; flex-direction: column; }
.article-card__body { display: flex; flex-direction: column; flex: 1; }
.article-card--featured {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  padding-bottom: 2.5rem; border-bottom: 1px solid var(--line);
}
.article-card--featured .article-card__media { margin-bottom: 0; }
.article-card--featured .article-card__foot { margin-top: .5rem; }
.article-card__media {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 16 / 10; background: var(--gray); margin-bottom: 1.1rem; border: 1px solid var(--line);
}
.article-card--featured .article-card__media { aspect-ratio: 3 / 2; }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.article-card:hover .article-card__media img { transform: scale(1.035); }
.article-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-bottom: .55rem; }
.article-card__title { font-size: 1.22rem; line-height: 1.25; margin-bottom: .55rem; }
.article-card--featured .article-card__title { font-size: clamp(1.5rem, 1.2vw + 1rem, 2rem); line-height: 1.15; }
.article-card__title a { color: var(--ink); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s var(--ease); }
.article-card__title a::after { content: ""; position: absolute; inset: 0; }
.article-card:hover .article-card__title a { background-size: 100% 1px; }
.article-card:focus-within { outline: 3px solid var(--green); outline-offset: 6px; border-radius: var(--radius); }
.article-card__title a:focus-visible { outline: none; }
.article-card__dek { color: var(--muted); font-size: .97rem; margin-bottom: .75rem; }
.article-card:not(.article-card--featured) .article-card__dek { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card--featured .article-card__dek { font-size: 1.05rem; }
.article-card__foot { display: flex; align-items: center; gap: .4rem; margin-top: auto; font-size: .84rem; color: var(--muted); }
.article-card__foot .icon { width: 1em; height: 1em; }

@media (max-width: 980px) {
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-card--featured { display: flex; padding-bottom: 0; border-bottom: 0; }
  .article-card--featured .article-card__media { margin-bottom: 1.1rem; }
}
@media (max-width: 600px) {
  .article-grid { grid-template-columns: 1fr; gap: 2.25rem; }
}

/* 11. WORTH SECTION -------------------------------------------------- */
.worth { background: var(--gray); }
.worth__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.worth__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.worth__intro .section-title { margin-bottom: .75rem; }
.worth__intro .section-lede { margin-bottom: 1.25rem; color: var(--ink-2); font-family: var(--serif); font-style: italic; }
.worth__intro > p { color: var(--muted); }
.pullquote { margin: 1.75rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--gold); }
.pullquote p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; color: var(--ink); }

.criteria { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; counter-reset: none; }
.criterion {
  position: relative; padding: 1.6rem 1.5rem 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.criterion:hover { border-color: var(--green-tint-2); box-shadow: var(--shadow); }
.criterion__num { position: absolute; top: 1.4rem; right: 1.5rem; font-family: var(--serif); font-size: 1.05rem; font-weight: 700; color: var(--gold-ink); letter-spacing: .04em; }
.criterion__icon { width: 30px; height: 30px; color: var(--green); margin-bottom: 1rem; stroke-width: 1.6; }
.criterion h3 { font-size: 1.18rem; margin-bottom: .45rem; padding-right: 2rem; }
.criterion p { font-size: .95rem; color: var(--muted); }
.worth__footnote {
  display: flex; gap: .6rem; margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line-strong);
  font-size: .93rem; color: var(--muted); max-width: 70ch;
}

@media (max-width: 960px) {
  .worth__grid { grid-template-columns: 1fr; }
  .worth__intro { position: static; }
}
@media (max-width: 600px) { .criteria { grid-template-columns: 1fr; } }

/* 12. MONEY TOOLS ---------------------------------------------------- */
.tool-group + .tool-group { margin-top: 2.5rem; }
.tool-group__title { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; font-family: var(--sans); font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.tool-card {
  position: relative; display: flex; flex-direction: column; gap: .6rem;
  padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.tool-card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tool-card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--green-tint); color: var(--green); }
.tool-card__icon .icon { width: 22px; height: 22px; }
.tool-card h3, .tool-card h4 { font-size: 1.2rem; margin-top: .4rem; }
.tool-card p { margin: 0; font-size: .95rem; color: var(--muted); flex: 1; }
.tool-card__link { margin-top: .5rem; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; }
.tool-card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.tool-card__link .icon { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.tool-card--available:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green-tint-2); }
.tool-card--available:hover .tool-card__link .icon { transform: translateX(4px); }
.tool-card--available:focus-within { border-color: var(--green); box-shadow: var(--shadow); }
.tool-card__link:focus-visible { outline: none; }
.tool-card--planned { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.tool-card--planned .tool-card__icon { background: var(--gold-tint); color: var(--gold-ink); }
.tool-card__status { margin-top: .5rem; font-size: .85rem; color: var(--muted); font-weight: 600; }

@media (max-width: 960px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tool-grid { grid-template-columns: 1fr; } }

/* 13. ABOUT ---------------------------------------------------------- */
.about { background: var(--paper); border-top: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.about__copy .section-title { margin-bottom: 1.25rem; }
.about__lead { font-family: var(--serif); font-size: clamp(1.3rem, .8vw + 1rem, 1.6rem); line-height: 1.45; color: var(--ink); }
.about__copy > p:not(.about__lead):not(.eyebrow) { color: var(--muted); font-size: 1.08rem; max-width: 56ch; margin-bottom: 1.5rem; }
.commitments { padding: 2rem; background: var(--green-tint); border-radius: var(--radius-lg); border: 1px solid var(--green-tint-2); }
.commitments h3 { font-size: 1.3rem; margin-bottom: 1.25rem; }
.commitments li { display: flex; gap: .75rem; font-size: .97rem; color: var(--ink-2); }
.commitments li + li { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--green-tint-2); }
.commitments li .icon { color: var(--green); stroke-width: 2.25; margin-top: .2rem; }
.commitments strong { color: var(--ink); }

@media (max-width: 960px) { .about__grid { grid-template-columns: 1fr; } }

/* 14. NEWSLETTER ----------------------------------------------------- */
.newsletter { padding-top: 0; }
.newsletter__panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem 3.5rem; align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.newsletter__panel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--green), var(--gold)); }
.newsletter__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1.1rem; border-radius: 14px; background: var(--gold-tint); color: var(--gold-ink); }
.newsletter__icon .icon { width: 24px; height: 24px; }
.newsletter__copy .section-title { font-size: clamp(1.7rem, 1.6vw + 1rem, 2.3rem); margin-bottom: .75rem; }
.newsletter__copy p { color: var(--muted); }
.newsletter-form__label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .45rem; }
.newsletter-form__row { display: flex; gap: .6rem; }
.newsletter-form input {
  flex: 1; min-width: 0; min-height: 52px; padding: .75rem 1.1rem;
  border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--paper);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.newsletter-form input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(36, 122, 73, .14); }
.newsletter-form input[aria-invalid="true"] { border-color: #B23A2B; }
.newsletter-form .btn { min-height: 52px; padding-inline: 1.6rem; }
.newsletter-form__status { min-height: 1.5em; margin: .6rem 0 0; font-size: .92rem; font-weight: 600; }
.newsletter-form__status.is-error { color: #A3332A; }
.newsletter-form__status.is-info { color: var(--gold-ink); }
.newsletter-form__note { font-size: .82rem; color: var(--muted); margin: .25rem 0 0; }

@media (max-width: 860px) { .newsletter__panel { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .newsletter-form__row { flex-direction: column; } }

/* 15. FOOTER --------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding-block: 3rem 2rem; font-size: .95rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); }
.disclosure-strip {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: 1rem 1.25rem; margin-bottom: 3rem;
  border: 1px solid rgba(250, 250, 247, .14); border-radius: var(--radius-sm); font-size: .88rem;
}
.disclosure-strip .icon { color: var(--gold); margin-top: .15rem; }
.disclosure-strip p { margin: 0; }
.disclosure-strip strong { color: var(--on-dark); }
.disclosure-strip a { text-decoration: underline; text-decoration-color: rgba(250, 250, 247, .4); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(250, 250, 247, .12); }
.brand--footer { color: var(--on-dark); margin-bottom: 1rem; }
.brand--footer:hover { text-decoration: none !important; color: var(--on-dark); }
.brand--footer .brand__mark { width: 36px; height: 36px; }
.footer-brand p { max-width: 34ch; }
.footer-social { font-size: .85rem; opacity: .85; }
.footer-col__title { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-col li + li { margin-top: .55rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.5rem; font-size: .84rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* 16. SEARCH DIALOG -------------------------------------------------- */
.search-dialog {
  width: min(660px, calc(100vw - 2rem)); max-height: min(640px, 80vh);
  margin: 10vh auto auto; padding: 0;
  border: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.search-dialog::backdrop { background: rgba(32, 36, 40, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.search-dialog[open] { animation: drop .2s var(--ease); }
.search-dialog__field { display: flex; align-items: center; gap: .75rem; padding: .75rem .75rem .75rem 1.25rem; border-bottom: 1px solid var(--line); }
.search-dialog__field > .icon { color: var(--muted); }
.search-dialog__field input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; font-size: 1.1rem; }
.search-dialog__field input:focus { outline: none; }
.search-dialog__field input::-webkit-search-cancel-button { display: none; }
.search-dialog__status { margin: 0; padding: .9rem 1.25rem .4rem; font-size: .85rem; color: var(--muted); }
.search-results { padding: 0 .6rem .75rem; max-height: 52vh; overflow-y: auto; }
.search-results a {
  display: flex; align-items: center; gap: 1rem; padding: .8rem .75rem; border-radius: 10px;
  color: var(--ink); text-decoration: none;
}
.search-results a:hover, .search-results a:focus-visible { background: var(--gray); outline: none; }
.search-results a:focus-visible { box-shadow: inset 0 0 0 2px var(--green); }
.search-results__icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--green-tint); color: var(--green); }
.search-results__text { flex: 1; min-width: 0; }
.search-results__title { display: block; font-weight: 600; line-height: 1.3; }
.search-results__type { display: block; font-size: .8rem; color: var(--muted); }
.search-results mark { background: var(--gold-tint); color: inherit; border-radius: 3px; padding: 0 1px; }

/* 17. SUB-PAGES ------------------------------------------------------ */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); background: var(--gray); border-bottom: 1px solid var(--line); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1.25rem; padding: 0; font-size: .88rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); }
.page-hero h1 { font-size: clamp(2.2rem, 3vw + 1rem, 3.4rem); letter-spacing: -.02em; margin-bottom: 1rem; }
.page-hero__lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; margin: 0; }
.page-hero .pill { margin-bottom: 1rem; }
.page-body { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.6rem; margin: 2.25rem 0 .75rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: .4rem; }
.placeholder-panel {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1.25rem 1.4rem; margin-bottom: 2.5rem; max-width: 70ch;
  background: var(--gold-tint); border: 1px dashed var(--gold); border-radius: var(--radius);
}
.placeholder-panel .icon { color: var(--gold-ink); margin-top: .2rem; }
.placeholder-panel p { margin: 0; }
.link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.link-cards a {
  display: block; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.link-cards a:hover { border-color: var(--green); color: var(--green-dark); }
.link-cards span { display: block; margin-top: .25rem; font-weight: 400; font-size: .9rem; color: var(--muted); }

.planned-guides { display: grid; gap: 1rem; max-width: 70ch; margin: 1rem 0 2.5rem; }
.planned-guide { padding: 1.25rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: calc(var(--header-h) + 1rem); }
.planned-guide:target, .tool-card:target { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
.planned-guide h3 { font-size: 1.25rem; margin: .5rem 0 .4rem; }
.planned-guide p { color: var(--muted); font-size: .97rem; }

/* 18. AFFILIATE-READY COMPONENTS (for future guide & product pages) --- */
.disclosure-banner {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .85rem 1.1rem; border-left: 4px solid var(--gold); background: var(--gold-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .9rem; color: var(--ink-2);
}
.disclosure-banner .icon { color: var(--gold-ink); margin-top: .1rem; }
.offer-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.offer-box__head { padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
.offer-box__head h3 { font-size: 1.2rem; }
.offer-box__head p { margin: .25rem 0 0; font-size: .9rem; color: var(--muted); }
.offer-list { list-style: none; margin: 0; padding: 0; }
.offer {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem;
  padding: .9rem 1.25rem; border-top: 1px solid var(--line);
}
.offer:first-child { border-top: 0; }
.offer__merchant { font-weight: 600; }
.offer__merchant small { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); }
.offer__price { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.offer__price--unknown { font-family: var(--sans); font-weight: 500; font-size: .85rem; color: var(--muted); }
.offer-box__foot { padding: .75rem 1.25rem; background: var(--paper); font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); }
.compare-table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--surface); }
.compare-table caption { text-align: left; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; padding-bottom: .75rem; }
.compare-table th, .compare-table td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table thead th { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--gray); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
@media (max-width: 600px) { .offer { grid-template-columns: 1fr auto; } .offer .btn { grid-column: 1 / -1; } }

/* 19. MOTION / REVEAL ------------------------------------------------ */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
}

/* 20. PRINT ---------------------------------------------------------- */
@media print {
  .utility-bar, .site-header, .advisor, .newsletter, .search-dialog { display: none !important; }
  body { background: #fff; }
}
