/* MoneyScanners.com — brand aligned to the official logo */
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #132539;
  --navy-deep: #0d1a28;
  --green: #13834a;
  --green-hover: #0e6b3c;
  --green-dark: #034135;
  --tag: #3f4c57;
  --ink: #132539;
  --ink-soft: #3f4c57;
  --paper: #f4f7f5;
  --card: #ffffff;
  --line: #d5e0d9;
  --focus: #13834a;
  --max: 68rem;
  --prose: 42rem;
  --radius: 0.55rem;
  --shadow: 0 1px 2px rgba(19, 37, 57, 0.05), 0 10px 28px rgba(19, 37, 57, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  font-weight: 430;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 0.15em; }
a:hover { color: var(--green-hover); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 30;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}
.prose-width { width: min(var(--prose), 100%); }

/* Header */
.site-header {
  background: #fff;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(19, 37, 57, 0.03);
  position: relative;
  z-index: 5;
}
.site-header::after {
  content: "";
  display: block;
  height: 3px;
  background: var(--green);
}
.site-header a { color: var(--navy); text-decoration: none; }
.site-header a:hover { color: var(--green-dark); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.wordmark {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 0 1 auto;
}
.wordmark img, .wordmark picture {
  display: block;
  height: 2.55rem;
  width: auto;
  max-width: 100%;
}
.wordmark img { height: 2.55rem; }
.nav {
  display: flex;
  gap: 1.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  flex: 0 0 auto;
  font-family: Montserrat, Inter, sans-serif;
}
.nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--green);
  color: var(--green-dark);
}

/* Page titles (inner pages) */
.page-hero {
  padding: 2.1rem 0 1.85rem;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.kicker {
  margin: 0 0 0.6rem;
  color: var(--green);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1, h2, h3, h4 {
  font-family: Montserrat, Inter, sans-serif;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--navy);
}
h1 { font-size: clamp(1.7rem, 4vw, 2.55rem); margin: 0 0 0.8rem; }
h2 { font-size: clamp(1.28rem, 2.4vw, 1.65rem); margin: 2.3rem 0 0.7rem; }
h3 { font-size: 1.12rem; margin: 1.5rem 0 0.45rem; letter-spacing: -0.02em; }
.lead {
  font-family: Inter, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 38rem;
}
.crumbs {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.crumbs a { color: var(--green); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 0.5rem; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 0.5rem; color: var(--ink-soft); }

/* Home photo hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: var(--navy);
  min-height: 28rem;
  display: flex;
  align-items: center;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}
.hero-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 28rem;
  display: flex;
  align-items: center;
  padding: 3.25rem 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.92) 26%,
    rgba(255, 255, 255, 0.72) 40%,
    rgba(255, 255, 255, 0.28) 54%,
    rgba(255, 255, 255, 0) 68%
  );
}
.hero .wrap { width: min(var(--max), calc(100% - 2rem)); }
.hero h1 { max-width: 14ch; }
.hero .lead { max-width: 32rem; color: var(--ink-soft); }

/* Chooser */
.chooser {
  padding: 2.15rem 0 0.5rem;
  background: var(--paper);
}
.chooser h2 { margin-top: 0; }
.chooser-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.1rem 0 1.25rem;
}
@media (min-width: 720px) {
  .chooser-grid { grid-template-columns: repeat(3, 1fr); }
}
.choice {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.2rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  min-height: 100%;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.choice:hover {
  border-color: var(--green);
  color: inherit;
  transform: translateY(-1px);
}
.choice-num {
  font-family: Montserrat, Inter, sans-serif;
  font-weight: 700;
  color: var(--green);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}
.choice h3 { margin: 0 0 0.4rem; font-size: 1.08rem; }
.choice p {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  flex: 1;
}
.choice .go {
  font-weight: 600;
  color: var(--green);
  font-size: 0.95rem;
}
.unsure { margin: 0; font-size: 1rem; }
.unsure + .unsure { margin-top: 0.45rem; }

/* Content */
.content { padding: 2rem 0 3rem; }
.content .prose p, .prose li { max-width: var(--prose); }
.content ul, .content ol { padding-left: 1.2rem; }
.content li { margin: 0.35rem 0; }
.content li + li { margin-top: 0.45rem; }
hr.soft {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.25rem 0;
}

.note, .callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1.05rem;
  max-width: 44rem;
  margin: 1.25rem 0;
}
.note p, .callout p { margin: 0; }
.note + .note { margin-top: 0.85rem; }
.warn {
  background: #eef6f1;
  border-left-color: var(--green-dark);
  color: var(--navy);
}

.picks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.2rem 0 1.5rem;
}
@media (min-width: 800px) {
  .picks.two { grid-template-columns: 1fr 1fr; }
}
.pick {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: var(--shadow);
}
.pick h3 { margin-top: 0; }
.pick-role {
  margin: -0.15rem 0 0.7rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}
.pick p:last-child { margin-bottom: 0; }

.amz {
  display: inline-block;
  background: var(--green);
  color: #fff !important;
  text-decoration: none;
  font-weight: 650;
  font-family: Montserrat, Inter, sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  padding: 0.55rem 0.95rem;
  border-radius: 0.3rem;
  margin-top: 0.35rem;
}
.amz:hover { background: var(--green-hover); color: #fff !important; }
.amz + .amz { margin-left: 0.35rem; margin-top: 0.45rem; }

.table-wrap {
  overflow-x: auto;
  margin: 1.1rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  max-width: 52rem;
}
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
caption {
  text-align: left;
  font-weight: 700;
  font-family: Montserrat, Inter, sans-serif;
  padding: 0.75rem 0.9rem 0.15rem;
  color: var(--navy);
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
th {
  background: #eaf2ed;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: Montserrat, Inter, sans-serif;
  color: var(--navy);
}
tr:last-child td { border-bottom: 0; }

.guide-list { display: grid; gap: 0.9rem; margin: 1.25rem 0; }
.guide-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.2rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}
.guide-card:hover { border-color: var(--green); color: inherit; }
.guide-card h2 { margin: 0 0 0.35rem; font-size: 1.2rem; }
.guide-card p { margin: 0; color: var(--ink-soft); }

.updated { margin-top: 2.5rem; color: var(--ink-soft); font-size: 0.92rem; }
.more-guides {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #c5d0ca;
  padding: 2rem 0 1.75rem;
  font-size: 0.92rem;
  line-height: 1.55;
}
.site-footer a { color: #e8f4ec; }
.site-footer .foot-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: 1.15rem;
}
.site-footer strong { color: #fff; font-weight: 700; font-family: Montserrat, Inter, sans-serif; }
.foot-tagline {
  margin: 0.4rem 0 0;
  font-family: Montserrat, Inter, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9aaba2;
}
.foot-nav { display: flex; flex-wrap: wrap; gap: 0.65rem 1.15rem; }
.foot-legal { margin: 0 0 0.55rem; max-width: 46rem; }
.foot-copy { margin: 0; color: #8f9e97; }

.not-found { padding: 3.5rem 0 4rem; }
.not-found h1 { margin-bottom: 0.75rem; }

@media (max-width: 720px) {
  .hero, .hero-overlay { min-height: 0; }
  .hero-overlay {
    padding: 2rem 0 2.35rem;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(255, 255, 255, 0.95) 58%,
      rgba(255, 255, 255, 0.90) 78%,
      rgba(255, 255, 255, 0.55) 100%
    );
  }
  .hero h1 { max-width: 16ch; }
  .hero-media img { object-position: 78% center; }
}
@media (max-width: 520px) {
  body { font-size: 1.02rem; }
  .header-inner { padding: 0.55rem 0; gap: 0.7rem; }
  .wordmark img { height: 2.05rem; }
  .nav { gap: 0.8rem; font-size: 0.88rem; }
  .page-hero { padding: 1.5rem 0 1.4rem; }
  .content { padding: 1.5rem 0 2.4rem; }
}
