/* The shared design system supplies typography, buttons, the hero and the blue broker banner. */
body.moneyo-home { background:#fff; --home-line:var(--finance-line); }
.moneyo-home .section-shell { width:min(1120px,calc(100% - 48px)); margin-inline:auto; }
.moneyo-home main [hidden] { display:none; }
.moneyo-home main a:focus-visible,.moneyo-home main button:focus-visible,.moneyo-home main input:focus-visible { outline:3px solid var(--finance-focus); outline-offset:3px; }
.moneyo-home .hero { min-height:0; padding-block:40px 32px; gap:36px; }
.moneyo-home .hero h1 { font-size:clamp(42px,4.8vw,66px); letter-spacing:-.045em; line-height:1.04; }
.moneyo-home .hero-lead { max-width:47ch; margin:15px 0 21px; }
.moneyo-home .hero .eyebrow { color:var(--finance-cta); }
.moneyo-home .hero-visual { max-width:590px; justify-self:center; }
.moneyo-home .hero-image { filter:none; }
.moneyo-home .trust-list { margin-top:16px; }
.home-search { position:relative; display:flex; gap:8px; align-items:center; min-width:0; padding:5px; border:1px solid #91a9ae; background:white; border-radius:10px; }
.home-search:focus-within { border-color:var(--finance-cta); }
.home-search input { flex:1; min-width:0; border:0; font:inherit; padding:8px 0; background:transparent; color:var(--finance-ink); }
.home-search input::placeholder { color:#526377; opacity:1; }
.home-search .home-magnifier { width:15px; height:15px; margin:0 7px 2px 12px; border:2px solid #516876; border-radius:50%; position:relative; flex:none; }
.home-magnifier::after { content:""; position:absolute; width:7px; height:2px; background:#516876; right:-5px; bottom:-3px; transform:rotate(45deg); }
.home-search button { min-height:44px; border:0; border-radius:7px; padding:0 20px; font:inherit; font-weight:700; color:white; background:var(--finance-cta); cursor:pointer; }
.home-search button:hover { background:var(--finance-cta-hover); }
#home-suggestions { list-style:none; position:absolute; z-index:8; inset:calc(100% + 4px) 0 auto; padding:5px; margin:0; background:white; border:1px solid var(--home-line); border-radius:8px; box-shadow:0 12px 28px #122b381c; max-height:340px; overflow-y:auto; }
#home-suggestions a { display:block; padding:10px 12px; font-size:15px; color:var(--finance-ink); }
#home-suggestions [aria-selected=true],#home-suggestions li:hover { background:#e9f4f2; }
.home-results { padding:24px; margin-bottom:32px; background:#eff7f5; border-radius:12px; scroll-margin-top:90px; }
.home-results h2 { overflow-wrap:anywhere; }
.home-results ul { display:grid; gap:8px; padding-left:22px; }
.home-results a { color:var(--finance-link); text-decoration:underline; text-underline-offset:.15em; }

.home-section,.moneyo-home .benefits { margin-block:42px; }
.home-heading { display:flex; justify-content:space-between; align-items:baseline; gap:10px 18px; flex-wrap:wrap; margin-bottom:17px; }
.moneyo-home :is(.home-heading,.center-heading) h2 { font-size:clamp(25px,2.5vw,34px); letter-spacing:-.04em; line-height:1.16; margin:0; }
.home-text-link { color:var(--finance-link); font-size:14px; font-weight:650; }
.home-categories a,.home-needs a,.home-tools a,.home-guides a,.home-editors a { text-decoration:none; }
.home-categories { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.home-categories a { display:flex; gap:10px; align-items:center; padding:16px 12px; color:var(--finance-ink); border:1px solid var(--home-line); border-radius:10px; background:white; }
.home-categories strong { font-size:15px; line-height:1.25; }
.home-categories .category-icon { flex:0 0 36px; width:36px; height:36px; margin:0; }
.home-categories a > span { margin-left:auto; font-size:21px; color:#47626b; }
.home-toolband { padding:23px 26px; background:#f2f7fc; border-radius:12px; }
.home-toolband .home-heading { margin-bottom:12px; }
.home-tools { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 26px; }
.home-tools a { border-bottom:1px solid #c2d4dc; gap:10px; }

.home-tools a { display:flex; align-items:center; justify-content:space-between; padding:9px 2px; font-size:14px; font-weight:650; color:var(--finance-link); }
.home-needs { display:flex; flex-wrap:wrap; gap:12px; }
.home-needs > a { flex:1 1 calc((100% - 36px) / 4); }
.home-needs a { position:relative; padding:16px 33px 16px 18px; border:1px solid var(--finance-line); border-radius:12px; background:#fbfdff; }
.moneyo-home .home-needs h3,.moneyo-home .home-guides h3 { margin:0; color:var(--finance-ink); font-size:19px; line-height:1.3; letter-spacing:-.025em; }
.home-needs a > span { position:absolute; right:14px; top:17px; color:var(--finance-cta); }
.home-needs p { margin:6px 0 0; color:var(--finance-text); font-size:14px; line-height:1.45; }
.moneyo-home .cta { margin-block:40px; padding:30px 40px; background:linear-gradient(110deg,#0755a7,#0867cc 64%,#2587e5); }
.moneyo-home .cta-panel { max-width:345px; }
.moneyo-home .cta h2,.moneyo-home .cta p { color:white; }
.moneyo-home .cta .button-light { color:#125e94; }
.moneyo-home .cta .button-ghost { color:white; border-color:#accff1; background:#07559e; }
.moneyo-home .cta-actions { gap:9px; }
.moneyo-home .cta-actions .button { font-size:14px; }
.home-guides { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.home-guides article { min-width:0; overflow:hidden; border:1px solid var(--finance-line); border-radius:12px; }
.home-guides a { display:block; height:100%; }
.home-guides img { display:block; width:100%; height:auto; aspect-ratio:2/1; object-fit:contain; background:#f4f7fa; }
.moneyo-home .home-guides h3 { padding:15px 14px 17px; font-size:17px; }
.moneyo-home .benefits { padding:0; }
.moneyo-home .benefits .center-heading { margin-bottom:22px; }
.moneyo-home .benefit-card { min-height:0; }
.moneyo-home .benefit-card h3 { font-size:18px; }
.moneyo-home .benefit-card a { color:var(--finance-link); text-decoration:underline; }
.moneyo-home .home-editors { padding:0; border:0; background:transparent; display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:12px 22px; margin:20px 0 0; font-size:14px; }
.home-editors > span { color:var(--finance-text); }
.home-editors a.credit-person { display:inline-flex; align-items:center; gap:8px; color:var(--finance-ink); font-weight:650; }
.home-editors .credit-person img { width:36px; height:36px; border-radius:50%; object-fit:cover; }
.home-categories a:hover,.home-guides article:hover,.home-needs a:hover { border-color:#7b9fb8; }
.home-tools a:hover,.home-editors a:hover,.home-guides a:hover h3,.home-needs a:hover h3 { text-decoration:underline; text-underline-offset:3px; }
.moneyo-home .footer-bottom { color:var(--finance-text); --color-blue:var(--finance-link); }
@media(max-width:900px) {
  .home-categories,.home-guides { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .home-categories > a:last-child:nth-child(odd) { grid-column:1/-1; }
  .home-needs > a { flex-basis:calc((100% - 12px) / 2); }
  .moneyo-home .hero { gap:18px; }
}
@media(max-width:720px) {
  .moneyo-home .section-shell { width:calc(100% - 32px); }
  .moneyo-home .hero { grid-template-columns:1fr; padding-block:24px 10px; gap:10px; }
  .moneyo-home .hero-visual { width:min(100%,390px); }
  .moneyo-home .trust-list { gap:8px 13px; }
  .moneyo-home .hero h1 { font-size:clamp(39px,11vw,53px); }
  .home-section,.moneyo-home .benefits { margin-block:30px; }
  .home-categories { gap:8px; }
  .home-categories a { padding:11px 8px; gap:6px; }
  .home-categories strong { font-size:14px; }
  .home-categories .category-icon { width:28px; height:28px; flex-basis:28px; }
  .home-needs { gap:8px; }
  .home-needs > a { flex-basis:100%; }
  .home-needs a { padding-block:12px; }
  .moneyo-home .cta { grid-template-columns:1fr; padding:24px; gap:20px; margin-block:30px; }
  .moneyo-home .cta-panel { justify-self:center; max-width:300px; }
  .home-toolband { padding:18px; }
  .home-tools { grid-template-columns:1fr; gap:0; }
  .home-guides { gap:10px; }
  .moneyo-home .home-guides h3 { padding:10px; font-size:16px; }
  .moneyo-home .home-editors { gap:8px 15px; }
  .moneyo-home .benefit-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .moneyo-home .benefit-card { padding:15px 12px; }
  .moneyo-home .benefit-card h3 { font-size:16px; }
  .home-editors > span { width:100%; text-align:center; }
}
@media(max-width:360px) { .home-categories a > span { display:none; } }
