/* =========================================================
   Money Script Review Guide — stylesheet
   Palette: evergreen ink, sage ledger paper, gold leaf
   ========================================================= */

@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #0F3B2E;        /* evergreen: headings, dark bands */
  --ink-2: #164d3c;
  --sage: #EEF3EC;       /* ledger paper */
  --paper: #FFFFFF;
  --gold: #C99A2E;       /* gold leaf: buttons, rules */
  --gold-deep: #9C7419;
  --text: #22312C;
  --muted: #4F625A;
  --rule: #CFDCD3;
  --on-ink: #F3F7F2;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--sans); font-size: 1.125rem; line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 600; color: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 700; color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); }
h3 { font-family: var(--sans); font-weight: 700; font-size: 1.25rem; line-height: 1.3; color: var(--ink); margin: 1.6em 0 .4em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; 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: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: 72ch; }
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: 72ch; }
.wrap.prose > .table-wrap { max-width: 900px; }
.prose.center { text-align: center; }
.prose.center > * { margin-left: auto; margin-right: auto; }
.band { padding: clamp(56px, 8vw, 96px) 0; }
.band-sage { background: var(--sage); }
.band-ink { background: var(--ink); color: var(--on-ink); }
.prose-light h2, .prose-light h3 { color: #fff; }
.prose-light a { color: #fff; }

/* Notice bar */
.notice-bar { background: var(--sage); border-bottom: 1px solid var(--rule); font-size: .95rem; text-align: center; }
.notice-bar p { margin: 0; padding: 8px var(--gutter); color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--rule); backdrop-filter: saturate(140%) blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand em { font-style: normal; font-weight: 400; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { text-decoration: none; font-weight: 600; font-size: 1rem; color: var(--text); }
.site-nav ul a:hover { color: var(--gold-deep); }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 26px; border-radius: 999px; font-family: var(--sans); font-weight: 700; font-size: 1.05rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; text-align: center; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #d9ab3f; color: var(--ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { min-height: 44px; padding: 8px 18px; font-size: .98rem; }
.btn-block { display: flex; width: 100%; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 80px); background: linear-gradient(180deg, var(--sage) 0%, var(--paper) 78%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy .lead { font-size: 1.22rem; max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-figure { margin: 0; }
.hero-figure img { border-radius: 50% 50% var(--radius) var(--radius); box-shadow: 0 0 0 1px var(--rule); }
figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; text-align: center; }

/* At a glance ledger card */
.glance { margin-top: clamp(36px, 5vw, 56px); background: var(--paper); border: 1px solid var(--rule); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.glance-title { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); margin-bottom: .8em; }
.glance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.glance-grid > div { padding: 14px 18px 14px 0; border-bottom: 1px solid var(--rule); }
.glance-grid dt { font-size: .95rem; color: var(--muted); font-weight: 600; }
.glance-grid dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }
.glance-note { font-size: .95rem; color: var(--muted); margin: 14px 0 0; }

/* Lists */
.ticks, .crosses { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li, .crosses li { position: relative; padding-left: 34px; margin-bottom: .7em; }
.ticks li::before, .crosses li::before { position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.ticks li::before { content: "\2713"; background: var(--ink); color: #fff; }
.crosses li::before { content: "\2715"; background: #e5d3cf; color: #7a2e22; }

/* What's inside */
.parts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 40px; }
.parts li { border-top: 2px solid var(--ink); padding: 18px 0 8px; }
.parts h3 { margin-top: 0; font-family: var(--serif); font-size: 1.3rem; }
.note { color: var(--muted); margin-top: 20px; }

/* Split layout */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split-reverse .split-figure { order: -1; }
.split-figure { margin: 0; }
.split-figure img { border-radius: var(--radius); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 1em; }
.steps li { counter-increment: s; position: relative; padding-left: 50px; margin-bottom: 1em; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold); font-family: var(--serif); font-weight: 700; display: grid; place-items: center; }
.steps-dark li::before { color: var(--gold-deep); border-color: var(--gold-deep); }

/* Fact table */
.table-wrap { overflow-x: auto; margin-top: 8px; }
.facts { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.facts thead th { background: var(--ink); color: #fff; font-weight: 600; }
.facts tbody tr:nth-child(even) { background: var(--sage); }
.facts td:first-child { width: 38%; }

/* Pros & cons */
.pc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 20px; }
.pc { border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px 26px; }
.pc h3 { margin-top: 0; font-family: var(--serif); font-size: 1.5rem; }
.pc ul { padding-left: 1.1em; margin: 0; }
.pc li { margin-bottom: .6em; }
.pc-pro { background: #f3f8f2; border-top: 4px solid var(--ink); }
.pc-con { background: #fbf6ef; border-top: 4px solid var(--gold); }

/* Two column */
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); }

/* Price */
.price-wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.price-card { background: var(--paper); color: var(--text); border-radius: var(--radius); padding: 28px; border-top: 6px solid var(--gold); }
.price-card h3 { margin-top: 0; font-family: var(--serif); font-size: 1.5rem; }
.price-line { display: flex; flex-direction: column; gap: 2px; }
.price { font-family: var(--serif); font-size: 3rem; font-weight: 700; color: var(--ink); line-height: 1; }
.price-sub { font-size: .95rem; color: var(--muted); }
.price-card ul { padding-left: 1.1em; margin: 16px 0 22px; }
.price-small { font-size: .9rem; color: var(--muted); margin: 10px 0 0; text-align: center; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 700; font-size: 1.12rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--serif); font-size: 1.6rem; color: var(--gold-deep); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 12px; }

/* Final CTA & legal */
.final-cta .btn { margin-top: 6px; }
.legal { background: var(--paper); border-top: 1px solid var(--rule); font-size: 1rem; color: var(--muted); }
.legal h2 { font-size: 1.4rem; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink); padding: 40px 0 110px; font-size: 1rem; }
.footer-inner { display: grid; gap: 14px; justify-items: start; }
.footer-brand { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; margin: 0; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; }
.site-footer a { color: var(--on-ink); }
.site-footer a:hover { color: var(--gold); }
.copyright { margin: 0; opacity: .85; }

/* Mobile sticky CTA */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--rule); display: none; }

/* Legal sub-pages */
.page-head { background: var(--sage); padding: 48px 0 32px; }
.page-body { padding: 40px 0 72px; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .split, .price-wrap, .two-col, .pc-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-figure { max-width: 420px; margin: 0 auto; }
  .split-reverse .split-figure { order: 0; }
  .glance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; gap: 12px; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--sage); }
  .mobile-cta:not([hidden]) { display: block; }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .glance-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { width: 100%; }
  .brand { font-size: 1.02rem; }
  .facts td:first-child { width: auto; }
}
