/* MoneyToplist — Main Stylesheet
   Trimmed from the MarbleHost original: kept tokens, reset, animations,
   eyebrow, buttons, hero, shared sections, legal-page styles and footer.
   Dropped pricing cards / comparison tables / homepage stats-needs-how-why
   sections — MoneyToplist has no pages that use them. Blog-specific styles
   live in style-blog.css. */

/* ═══════════════════════════════════
   TOKENS
═══════════════════════════════════ */
:root {
  /* ── Charcoal & Teal ── Slate & Teal's near-neutral navy pushed even
     further toward true neutral (barely any hue left at all), nav/hero/
     footer back to sharing it (no separate white-nav treatment this round).
     --amber (CTA accent) unchanged. --blue swapped from a muted teal to a
     genuinely blue hue — links were blending into scanned body text at the
     old value. New --heading token gives h2/h3 their own color instead of
     sharing --ink with <strong>/<b>, which is why the two used to be hard
     to tell apart at a glance.
  */
  --navy:       #23262A;
  --navy-mid:   #2E3338;
  --navy-deep:  #13171B;
  --amber:      #11D4C4;
  --amber-h:    #0EAFA1;
  --amber-pale: #CFFCF8;
  --blue:       #0E5BD8;
  --blue-h:     #0B49AD;
  --blue-pale:  #ECF3FE;
  --heading:    #205551;
  --surface:    #F7F7F8;
  --white:      #FFFFFF;
  --ink:        #1F272D;
  --muted:      #4B5C68;
  --border:     #D7DFE4;

  /* Raw "r, g, b" components of the tokens above, for the handful of spots
     that need a translucent version (rgba(var(--x-rgb), .3) etc.) — glow
     gradients, focus rings, soft borders. Keeping these in sync with the
     hex tokens above is what makes a recolor a :root-only edit: every rgba()
     in this file (and style-blog.css) that used to hardcode e.g. "0,113,188"
     now reads one of these instead, so it moves automatically when the hex
     value above changes. Pure rgba(255,255,255,X) / rgba(0,0,0,X) overlays
     (translucent white on dark sections, plain black shadows) are left as
     literals on purpose — they're palette-agnostic and don't need a token.
  */
  --navy-rgb:     35, 38, 42;
  --amber-rgb:    17, 212, 196;
  --amber-h-rgb:  14, 175, 161;
  --blue-rgb:     14, 91, 216;

  /* Decorative-only extras that don't have an existing token to reuse: */
  --glow-blue:      #33CCBF; /* more vivid than --blue on purpose — used only in the hero/banner/CTA radial-gradient glows, which read as washed-out at --blue's flatter saturation. Left tied to the old teal family rather than the new link-blue — it sits alongside the amber glow in the same gradient and that pairing already worked. */
  --glow-blue-rgb:  51, 204, 191;
  --amber-pale-border: #9AF4EC; /* border for the .recommended-alert box; pairs with --amber-pale as its background */
  --eyebrow-accent: #97EDE6; /* small accent text sitting directly on --navy (hero eyebrow) — needs its own tuned lightness, lighter than --amber-pale would read as text */
  --logo-accent:    #89E6DE; /* the "Toplist" half of the two-tone MoneyToplist logo — was hardcoded inline as style="color:#3aa3d8" in header.php/footer.php, now a proper token; see .logo-accent below */
  --f-serif: 'Fraunces', Georgia, serif;
  --f-sans:  'Inter', system-ui, sans-serif;
  --wrap:  1280px;
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  14px;
  --r-xl:  12px;
  --ease:  cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════
   RESET & BASE
═══════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: 70px; scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }

/* ═══════════════════════════════════
   ANIMATIONS
═══════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.au { animation: fadeUp .6s var(--ease) both; }
.d1 { animation-delay: .05s; }
.d2 { animation-delay: .14s; }
.d3 { animation-delay: .23s; }
.d4 { animation-delay: .32s; }

/* ═══════════════════════════════════
   EYEBROW
═══════════════════════════════════ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
}
.eyebrow-line {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber);
}
.eyebrow-line::before {
  content: ''; display: inline-block;
  width: 26px; height: 1.5px;
  background: var(--amber); border-radius: 2px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════
   BUTTONS
═══════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-family: var(--f-sans); font-weight: 600;
  border: none; cursor: pointer; border-radius: var(--r-lg);
  transition: all .2s var(--ease); text-decoration: none;
  white-space: nowrap; line-height: 1;
}
.btn-amber {
  background: var(--amber); color: var(--navy-deep);
  padding: 21px 26px; font-size: 1rem;
  box-shadow: 0 2px 8px rgba(var(--amber-h-rgb),.25);
}
.btn-amber:hover { background: var(--amber-h); gap: 10px; }
.btn-ghost {
  background: transparent; color: #fff;
  padding: 20px 24px; font-size: 1rem;
  border: 2px solid rgba(255,255,255,.35);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.75); background: rgba(255,255,255,.07); }
.btn-nav-amber {
  background: var(--amber); color: var(--navy-deep);
  padding: 13px 20px; font-size: .875rem; border-radius: var(--r-md);
}
.btn-nav-amber:hover { background: var(--amber-h); }
.btn-blue { background: var(--blue); color: #fff; padding: 14px 20px; font-size: .9rem; border-radius: var(--r-md); font-weight: 700; }
.btn-blue:hover { background: var(--blue-h); }
.btn-navy { background: var(--navy); color: #fff; padding: 14px 20px; font-size: .9rem; border-radius: var(--r-md); font-weight: 700; }
.btn-navy:hover { background: var(--navy-mid); }

/* ═══════════════════════════════════
   NAVIGATION
═══════════════════════════════════ */
nav.site-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(var(--navy-rgb), .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.nav-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 72px; gap: 20px;
}
.logo { display: inline-flex; align-items: baseline; gap: 8px; color: #fff; flex-shrink: 0; }
.logo-name { font-family: var(--f-sans); font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; }
.logo-accent { color: var(--logo-accent); }
.nav-links {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; list-style: none;
}
.nav-links a { font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.9); transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; flex-shrink: 0; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }

/* Categories dropdown — click-triggered (not hover), per NN/g usability
   research on hidden navigation. Same toggle logic drives a floating panel
   on desktop and an inline accordion inside the mobile menu (media query
   below repositions it). */
.nav-item-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-toggle {
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: inherit; font-size: .875rem; font-weight: 500;
  color: rgba(255,255,255,.9); transition: color .2s;
  display: inline-flex; align-items: center; gap: 5px;
}
.nav-dropdown-toggle:hover { color: #fff; }
.nav-dropdown-chevron { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; flex-shrink: 0; }
.nav-dropdown-toggle[aria-expanded="true"] .nav-dropdown-chevron { transform: rotate(180deg); }
.nav-dropdown-panel {
  display: none; flex-direction: column; gap: 2px;
  position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%);
  background: var(--navy); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md); padding: 8px; min-width: 200px;
  box-shadow: 0 16px 36px rgba(0,0,0,.35);
  z-index: 50;
}
.nav-dropdown-panel.open { display: flex; }
.nav-dropdown-panel a { padding: 9px 14px; border-radius: 6px; font-size: .85rem; font-weight: 500; color: rgba(255,255,255,.85); white-space: nowrap; }
.nav-dropdown-panel a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-dropdown-empty { padding: 9px 14px; font-size: .82rem; color: rgba(255,255,255,.45); white-space: nowrap; }

/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
.hero {
  background: var(--navy);
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  padding: 0;
}
.hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 12% 20%, rgba(var(--glow-blue-rgb),.32), transparent 32%),
    radial-gradient(circle at 88% 70%, rgba(var(--amber-h-rgb),.08), transparent 28%);
}
.hero .wrap { width: 100%; }
.hero-inner {
  position: relative; z-index: 1;
  padding: 64px 0;
  width: 52%; max-width: 52%; flex-shrink: 0;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--eyebrow-accent); margin-bottom: 16px;
}
.hero-eyebrow::before { content: ''; display: inline-block; width: 26px; height: 1.5px; background: var(--eyebrow-accent); }
.hero h1 {
  font-family: var(--f-serif);
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  font-weight: 700; line-height: 1.2;
  letter-spacing: -.025em; color: #fff;
  margin-bottom: 20px;
}
.hero h1 em { font-style: italic; font-weight: 300; color: rgba(255,255,255,.7); }
.hero-sub { font-size: 1.05rem; font-weight: 400; color: rgba(255,255,255,.78); line-height: 1.75; margin-bottom: 28px; max-width: 480px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: .875rem; color: rgba(255,255,255,.5); display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.hero-note span { display: flex; align-items: center; gap: 5px; }
.hero-note svg { width: 13px; height: 13px; }
.hero-photo-wrap { position: absolute; top: 0; right: 0; width: 52%; height: 100%; overflow: hidden; }
.hero-photo-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-photo-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(var(--navy-rgb),1) 0%, rgba(var(--navy-rgb),.6) 30%, rgba(var(--navy-rgb),.15) 65%, rgba(var(--navy-rgb),0) 100%);
}

/* ═══════════════════════════════════
   SECTIONS — shared
═══════════════════════════════════ */
section { padding: 80px 0; }
.section-title {
  font-family: var(--f-sans);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -.03em; color: var(--ink);
  margin-top: 12px; margin-bottom: 18px;
}
.section-sub { font-size: 1rem; color: var(--muted); line-height: 1.75; max-width: 520px; }
.section-head { margin-bottom: 48px; }

/* ═══════════════════════════════════
   PAGE FINAL CTA (shared — e.g. bottom of Contact page)
═══════════════════════════════════ */
.page-cta-final { background: var(--blue-pale); padding: 80px 0; text-align: center; }
.page-cta-final-inner { position: relative; }
.page-cta-final h2 { font-family: var(--f-sans); font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; color: var(--ink); letter-spacing: -.03em; margin-bottom: 10px; }
.page-cta-final p { color: var(--muted); font-size: 1rem; margin-bottom: 28px; }

/* ═══════════════════════════════════
   LEGAL PAGES (legal-notice / privacy-policy / terms-of-service)
═══════════════════════════════════ */
.legal-hero { background: var(--navy); padding: 52px 0; }
.legal-hero h1 { font-family: var(--f-serif); font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 700; color: #fff; line-height: 1.15; letter-spacing: -.025em; margin-bottom: 12px; }
.legal-hero p { font-size: 1rem; color: rgba(255,255,255,.7); }

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
footer { background: var(--navy-deep); padding: 48px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 22px;
}
.footer-logo { display: inline-flex; align-items: baseline; gap: 7px; color: #fff; margin-bottom: 12px; }
.footer-logo-name { font-family: var(--f-sans); font-size: 1.2rem; font-weight: 700; }
.footer-tagline { font-size: .85rem; color: rgba(255,255,255,.5); line-height: 1.65; max-width: 240px; }
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 7px;
  border: 1.5px solid rgba(255,255,255,.15); color: rgba(255,255,255,.6);
  transition: border-color .2s, color .2s, background .2s;
}
.footer-social a:hover { border-color: var(--amber); color: var(--amber); background: rgba(255,255,255,.04); }
.footer-social svg { width: 14px; height: 14px; }

.footer-col-title {
  font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 18px;
}
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { font-size: .875rem; color: rgba(255,255,255,.75); transition: color .2s; background: transparent; padding: 0; }
.footer-nav a:hover { color: #fff; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.5); }

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col-brand { grid-column: 1 / -1; margin-bottom: 8px; }
  .footer-tagline { max-width: none; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-col-brand { grid-column: auto; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 1100px) {
  .hero-inner { padding: 50px 0; width: 100%; max-width: 100%; }
  .hero { min-height: 0; }
  .hero-photo-wrap { display: none; }
  .section-head { margin-bottom: 36px; }
  section { padding: 56px 0; }
}
@media (max-width: 960px) {
  .nav-row { display: flex; justify-content: space-between; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 18px 24px; gap: 14px;
    z-index: 199; justify-content: flex-start;
  }
  /* Inline accordion instead of a floating panel once the menu is a vertical list */
  .nav-item-dropdown { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-dropdown-panel {
    position: static; transform: none; box-shadow: none; border: none;
    background: rgba(255,255,255,.04); border-radius: var(--r-sm);
    margin-top: 6px; padding: 4px; width: 100%;
  }
}
@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .hero-inner { padding: 40px 0; width: 100%; }
  .hero { min-height: 0; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero-ctas .btn, .hero-ctas .btn-ghost { width: 100%; justify-content: center; }
  .page-cta-final .btn { width: 100%; justify-content: center; }
  .hero-eyebrow { margin-bottom: 12px; }
  .hero h1 { margin-bottom: 12px; }
  .hero-sub { margin-bottom: 20px; }
  .hero-note { justify-content: center; }
  .section-head { margin-bottom: 28px; }
  section { padding: 40px 0; }
  .footer-bottom p { text-align: center; }
  .page-cta-final { padding: 56px 0; }
}
