/* ============================================================
   MoneyLooper.com — Global Stylesheet
   Palette: deep loop green + money gold on white paper
   Type: Bricolage Grotesque (display) / Inter (body)
   ============================================================ */

:root{
  --green-950:#0C2B20;
  --green-900:#10382A;
  --green-800:#175C41;
  --green-600:#1F7A55;
  --green-100:#EAF3EC;
  --green-50:#F4F8F4;
  --gold:#FFC14D;
  --gold-deep:#E8A72A;
  --ink:#13211A;
  --muted:#5A6A61;
  --line:#E1E9E2;
  --paper:#FFFFFF;
  --radius:14px;
  --maxw:1180px;
  --shadow:0 10px 30px rgba(16,56,42,.08);
  --font-display:"Bricolage Grotesque",system-ui,sans-serif;
  --font-body:"Inter",system-ui,-apple-system,sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}
body{
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--paper);
  line-height:1.65;
  font-size:16.5px;
  -webkit-font-smoothing:antialiased;
}
img,svg{max-width:100%;display:block}
a{color:var(--green-800);text-decoration:none}
a:hover{text-decoration:underline}
a:focus-visible,button:focus-visible{outline:3px solid var(--gold);outline-offset:2px;border-radius:4px}

.wrap{max-width:var(--maxw);margin:0 auto;padding:0 22px}

h1,h2,h3,h4{font-family:var(--font-display);line-height:1.15;letter-spacing:-.01em;font-weight:700}

/* ---------- Header / Nav ---------- */
.site-header{
  background:var(--green-900);
  position:sticky;top:0;z-index:50;
  border-bottom:3px solid var(--gold);
}
.nav{
  display:flex;align-items:center;gap:28px;
  min-height:72px;
}
.nav .logo img{height:40px;width:auto}
.nav-links{display:flex;gap:6px;list-style:none;align-items:center;flex:1}
.nav-links a{
  color:#EAF3EC;font-weight:600;font-size:.95rem;
  padding:10px 14px;border-radius:8px;
}
.nav-links a:hover{background:rgba(255,255,255,.1);text-decoration:none}
.nav-cta{
  background:var(--gold);color:var(--green-950)!important;
  font-weight:700;border-radius:999px;padding:10px 20px!important;
}
.nav-cta:hover{background:#ffd077;text-decoration:none}
.nav-toggle{
  display:none;background:none;border:0;cursor:pointer;
  margin-left:auto;padding:8px;
}
.nav-toggle span{
  display:block;width:26px;height:3px;background:#fff;
  border-radius:2px;margin:5px 0;transition:transform .25s,opacity .25s;
}

/* ---------- Highlights strip (TPG-style) ---------- */
.highlights{
  border-bottom:1px solid var(--line);
  background:var(--green-50);
}
.highlights-inner{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:0;
}
.highlight{
  display:flex;gap:14px;align-items:center;
  padding:20px 22px;
}
.highlight + .highlight{border-left:1px solid var(--line)}
.highlight .h-icon{
  flex:none;width:52px;height:52px;border-radius:50%;
  background:var(--green-900);display:grid;place-items:center;
}
.highlight .h-icon svg{width:28px;height:28px}
.highlight h3{font-size:1rem;margin-bottom:2px}
.highlight h3 a{color:var(--ink)}
.highlight p{font-size:.85rem;color:var(--muted);line-height:1.45}

/* ---------- Hero ---------- */
.hero{padding:64px 0 40px;text-align:center}
.hero h1{
  font-size:clamp(2.2rem,5.4vw,3.9rem);
  max-width:820px;margin:0 auto;
  font-weight:800;
}
.hero .loop-word{position:relative;white-space:nowrap}
.hero .loop-word svg{
  position:absolute;left:-2%;bottom:-22px;width:104%;height:auto;
  overflow:visible;z-index:-1;
}
.hero .loop-word svg path{
  stroke:var(--gold);stroke-width:6;fill:none;stroke-linecap:round;
  stroke-dasharray:600;stroke-dashoffset:600;
  animation:drawloop 1.1s .3s ease forwards;
}
.hero .loop-word svg path:last-child{animation-delay:.7s;opacity:.55}
.hero h1{position:relative;z-index:1}
@keyframes drawloop{to{stroke-dashoffset:0}}
.hero p{
  max-width:560px;margin:18px auto 0;color:var(--muted);font-size:1.1rem;
}

/* ---------- Section headers ---------- */
.section{padding:44px 0}
.section-head{
  display:flex;align-items:baseline;justify-content:space-between;
  gap:16px;margin-bottom:26px;
}
.section-head h2{font-size:1.7rem}
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-size:.78rem;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;color:var(--green-800);
}
.eyebrow svg{width:18px;height:18px}
.see-all{font-weight:700;font-size:.92rem;white-space:nowrap}

/* ---------- Featured split (hero article + list) ---------- */
.featured-grid{
  display:grid;grid-template-columns:1.05fr 1fr;gap:36px;align-items:start;
}
.feature-card{
  background:var(--green-900);color:#fff;border-radius:20px;
  overflow:hidden;box-shadow:var(--shadow);display:block;
}
.feature-card:hover{text-decoration:none}
.feature-card .fc-media{aspect-ratio:16/10;overflow:hidden}
.feature-card .fc-media svg{width:100%;height:100%}
.feature-card .fc-body{padding:26px 28px 30px}
.feature-card .cat{color:var(--gold)}
.feature-card h3{
  color:#fff;font-size:clamp(1.4rem,2.4vw,1.9rem);margin:10px 0 12px;
}
.feature-card:hover h3{text-decoration:underline;text-decoration-color:var(--gold)}
.feature-card p{color:#D7E4DA;font-size:.98rem}
.cat{
  font-size:.75rem;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;color:var(--green-800);
}
.byline{font-size:.85rem;color:var(--muted);margin-top:10px}
.feature-card .byline{color:#AFC6B6}

.latest-list{display:flex;flex-direction:column}
.latest-item{
  display:grid;grid-template-columns:1fr 128px;gap:18px;
  padding:18px 0;border-bottom:1px solid var(--line);
  align-items:center;
}
.latest-item:first-child{padding-top:0}
.latest-item h3{font-size:1.15rem;margin:6px 0 4px}
.latest-item h3 a{color:var(--ink)}
.latest-item .thumb{
  width:128px;height:96px;border-radius:12px;overflow:hidden;
  background:var(--green-100);
}
.latest-item .thumb svg{width:100%;height:100%}

/* ---------- Category card grids ---------- */
.card-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:26px;
}
.post-card{
  border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;background:#fff;display:flex;flex-direction:column;
  transition:transform .2s,box-shadow .2s;
}
.post-card:hover{transform:translateY(-4px);box-shadow:var(--shadow);text-decoration:none}
.post-card .pc-media{aspect-ratio:16/9;background:var(--green-100)}
.post-card .pc-media svg{width:100%;height:100%}
.post-card .pc-body{padding:18px 20px 22px}
.post-card h3{font-size:1.12rem;margin:8px 0 6px;color:var(--ink)}
.post-card:hover h3{text-decoration:underline}
.post-card p{font-size:.92rem;color:var(--muted)}

/* ---------- Category band ---------- */
.cat-band{background:var(--green-50);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.cat-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.cat-tile{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:22px;display:flex;flex-direction:column;gap:8px;
  transition:transform .2s,box-shadow .2s;
}
.cat-tile:hover{transform:translateY(-4px);box-shadow:var(--shadow);text-decoration:none}
.cat-tile .ct-icon{
  width:46px;height:46px;border-radius:12px;background:var(--green-900);
  display:grid;place-items:center;margin-bottom:4px;
}
.cat-tile .ct-icon svg{width:26px;height:26px}
.cat-tile h3{font-size:1.05rem;color:var(--ink)}
.cat-tile p{font-size:.88rem;color:var(--muted)}

/* ---------- Newsletter ---------- */
.newsletter{
  background:var(--green-900);border-radius:22px;color:#fff;
  padding:44px 40px;display:grid;grid-template-columns:1.2fr 1fr;
  gap:32px;align-items:center;position:relative;overflow:hidden;
}
.newsletter::after{
  content:"";position:absolute;right:-70px;top:-70px;width:260px;height:260px;
  border:26px solid rgba(255,193,77,.18);border-radius:50%;
}
.newsletter h2{font-size:clamp(1.5rem,3vw,2.1rem);color:#fff;margin-bottom:8px}
.newsletter p{color:#CBDCD0;font-size:.98rem}
.nl-form{display:flex;gap:10px;position:relative;z-index:1}
.nl-form input{
  flex:1;border:0;border-radius:999px;padding:14px 20px;font-size:1rem;
  font-family:var(--font-body);
}
.nl-form button{
  background:var(--gold);border:0;border-radius:999px;
  padding:14px 26px;font-weight:700;font-size:1rem;cursor:pointer;
  color:var(--green-950);font-family:var(--font-body);
}
.nl-form button:hover{background:#ffd077}
.nl-note{font-size:.78rem;color:#9DB8A6;margin-top:10px}

/* ---------- Article pages ---------- */
.article-hero{padding:52px 0 8px;max-width:780px;margin:0 auto}
.article-hero h1{font-size:clamp(1.9rem,4.4vw,3rem);margin:14px 0 16px}
.article-hero .dek{font-size:1.15rem;color:var(--muted)}
.article-meta{
  display:flex;gap:14px;align-items:center;margin-top:20px;
  font-size:.88rem;color:var(--muted);flex-wrap:wrap;
}
.article-meta .avatar{
  width:40px;height:40px;border-radius:50%;background:var(--green-800);
  color:#fff;display:grid;place-items:center;font-weight:700;
  font-family:var(--font-display);
}
.article-figure{
  max-width:900px;margin:34px auto 0;border-radius:20px;overflow:hidden;
  box-shadow:var(--shadow);
}
.article-figure svg{width:100%;height:auto}
.article-body{max-width:720px;margin:40px auto 0;font-size:1.06rem}
.article-body>*+*{margin-top:1.25em}
.article-body h2{font-size:1.6rem;margin-top:2em}
.article-body h3{font-size:1.25rem;margin-top:1.6em}
.article-body ul,.article-body ol{padding-left:1.4em}
.article-body li+li{margin-top:.5em}
.article-body strong{color:var(--green-950)}
.article-body blockquote{
  border-left:4px solid var(--gold);padding:6px 0 6px 20px;
  color:var(--green-800);font-weight:600;font-size:1.12rem;
}
.callout{
  background:var(--green-50);border:1px solid var(--line);
  border-radius:var(--radius);padding:20px 22px;font-size:.98rem;
}
.callout .callout-label{
  display:inline-flex;align-items:center;gap:8px;font-weight:700;
  color:var(--green-800);font-size:.82rem;text-transform:uppercase;
  letter-spacing:.1em;margin-bottom:8px;
}
.article-body table{
  width:100%;border-collapse:collapse;font-size:.95rem;
}
.article-body th,.article-body td{
  border:1px solid var(--line);padding:10px 14px;text-align:left;
}
.article-body th{background:var(--green-50);font-weight:700}
.article-disclosure{
  max-width:720px;margin:26px auto 0;font-size:.8rem;color:var(--muted);
  border:1px dashed var(--line);border-radius:10px;padding:14px 18px;
}
.more-reads{max-width:900px;margin:60px auto 0}
.more-reads h2{font-size:1.4rem;margin-bottom:20px}

/* ---------- Legal pages ---------- */
.legal{max-width:760px;margin:0 auto;padding:56px 0}
.legal h1{font-size:2.2rem;margin-bottom:6px}
.legal .updated{color:var(--muted);font-size:.9rem;margin-bottom:30px}
.legal h2{font-size:1.35rem;margin:2em 0 .6em}
.legal p,.legal li{margin-bottom:.9em;color:#2C3A32}
.legal ul{padding-left:1.4em}

/* ---------- Footer (BestMoney-style) ---------- */
.site-footer{
  background:var(--green-900);color:#D9E6DC;margin-top:70px;
  font-size:.92rem;
}
.footer-main{
  display:grid;grid-template-columns:1fr 1.6fr;gap:56px;
  padding:56px 0 34px;
}
.footer-brand img{height:42px;width:auto;margin-bottom:22px}
.footer-brand p{margin-bottom:12px;line-height:1.6}
.footer-brand a{color:#fff;font-weight:600}
.footer-social{display:flex;gap:14px;margin-top:22px}
.footer-social a{
  width:38px;height:38px;border-radius:50%;
  border:1px solid rgba(255,255,255,.35);display:grid;place-items:center;
}
.footer-social a:hover{background:rgba(255,255,255,.12)}
.footer-social svg{width:18px;height:18px;fill:#fff}
.footer-nav{display:flex;flex-wrap:wrap;gap:8px 10px;margin-bottom:26px}
.footer-nav a{
  color:#fff;font-weight:700;font-size:.9rem;
  background:rgba(255,255,255,.12);padding:6px 12px;border-radius:6px;
}
.footer-nav a:hover{background:rgba(255,255,255,.22);text-decoration:none}
.footer-legal p{margin-bottom:14px;line-height:1.7;color:#C4D6C9}
.footer-divider{border:0;border-top:1px solid rgba(255,255,255,.25);margin:26px 0}
.footer-adv{font-size:.8rem;color:#A8BFAF;line-height:1.7}
.footer-adv h4{color:#D9E6DC;font-family:var(--font-body);font-size:.85rem;margin-bottom:8px}
.footer-bottom{
  padding:0 0 46px;font-size:.82rem;color:#93AC9B;
}

/* ---------- Breadcrumb ---------- */
.crumbs{font-size:.85rem;color:var(--muted);padding-top:26px;max-width:780px;margin:0 auto}
.crumbs a{color:var(--green-800);font-weight:600}

/* ---------- Responsive ---------- */
@media (max-width:960px){
  .featured-grid{grid-template-columns:1fr}
  .card-grid{grid-template-columns:repeat(2,1fr)}
  .cat-tiles{grid-template-columns:repeat(2,1fr)}
  .newsletter{grid-template-columns:1fr;padding:36px 28px}
  .footer-main{grid-template-columns:1fr;gap:36px}
  .highlights-inner{grid-template-columns:1fr}
  .highlight + .highlight{border-left:0;border-top:1px solid var(--line)}
}
@media (max-width:720px){
  .nav-toggle{display:block}
  .nav-links{
    display:none;position:absolute;top:100%;left:0;right:0;
    background:var(--green-950);flex-direction:column;align-items:stretch;
    padding:12px 18px 22px;gap:4px;border-bottom:3px solid var(--gold);
  }
  .nav-links.open{display:flex}
  .nav-links a{padding:13px 14px;font-size:1.02rem}
  .nav-cta{text-align:center;margin-top:8px}
  .card-grid{grid-template-columns:1fr}
  .cat-tiles{grid-template-columns:1fr}
  .latest-item{grid-template-columns:1fr 104px}
  .latest-item .thumb{width:104px;height:80px}
  .hero{padding:44px 0 28px}
  .nl-form{flex-direction:column}
  .nl-form button{width:100%}
}

.footer-legal a,.footer-adv a{color:var(--gold);font-weight:600}
