:root {
  --hub-ink: #172033;
  --hub-muted: #596579;
  --hub-line: #dce3ec;
  --hub-blue: #075fd8;
  --hub-blue-dark: #064aa7;
  --hub-soft: #f3f7fc;
  --hub-card: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f8fafc; color: var(--hub-ink); font-family: "Segoe UI", Roboto, Arial, sans-serif; }
.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: fixed; left: 1rem; top: -5rem; z-index: 10000; padding: .75rem 1rem; border-radius: .5rem; background: #fff; color: var(--hub-blue-dark); box-shadow: 0 6px 24px rgba(15, 23, 42, .18); }
.skip-link:focus { top: 1rem; }

.breadcrumbs { width: min(1180px, calc(100% - 2rem)); margin: 1rem auto 0; display: flex; gap: .5rem; align-items: center; color: var(--hub-muted); font-size: .9rem; }
.breadcrumbs a { color: var(--hub-blue); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.hub-main { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 1rem 0 4rem; }
.hub-hero { position: relative; overflow: hidden; margin: 0 0 2rem; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid #d8e4f3; border-radius: 1.25rem; background: linear-gradient(135deg, #fff 0%, #eef6ff 100%); box-shadow: 0 14px 40px rgba(30, 64, 175, .08); text-align: center; }
.hub-hero::after { content: ""; position: absolute; width: 16rem; height: 16rem; right: -8rem; top: -10rem; border-radius: 50%; background: rgba(7, 95, 216, .08); pointer-events: none; }
.hub-eyebrow { margin: 0 0 .5rem; color: var(--hub-blue-dark); font-size: .78rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.hub-hero h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.08; letter-spacing: -.035em; }
.hub-summary { margin: .85rem auto 0; color: var(--hub-muted); font-size: 1.05rem; }
.search-container { position: relative; width: min(650px, 100%); margin: 1.5rem auto 0; text-align: left; }
#toolSearch { width: 100%; min-height: 3.35rem; padding: .85rem 1rem; border: 1px solid #b8c6d8; border-radius: .8rem; background: #fff; color: var(--hub-ink); font: inherit; font-size: 1rem; box-shadow: 0 4px 16px rgba(15, 23, 42, .06); }
#toolSearch:focus { outline: 3px solid rgba(7, 95, 216, .18); border-color: var(--hub-blue); }
.search-results { position: absolute; z-index: 20; top: calc(100% + .35rem); left: 0; right: 0; display: none; max-height: 22rem; overflow: auto; padding: .4rem; border: 1px solid var(--hub-line); border-radius: .75rem; background: #fff; box-shadow: 0 14px 35px rgba(15, 23, 42, .15); }
.search-results a { display: block; padding: .75rem .85rem; border-radius: .5rem; color: var(--hub-ink); text-decoration: none; }
.search-results a:hover, .search-results a:focus { background: var(--hub-soft); color: var(--hub-blue-dark); }
.search-empty { margin: 0; padding: .8rem; color: var(--hub-muted); }
.trust-points { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem 1.2rem; margin: 1.25rem 0 0; padding: 0; list-style: none; color: #39465a; font-size: .9rem; }
.trust-points span { color: #16834b; font-weight: 800; }

.hub-content > .hub-intro { max-width: 900px; margin: 0 auto 1.5rem; color: #39465a; font-size: 1.05rem; line-height: 1.7; text-align: center; }
.hub-content a { color: var(--hub-blue); }
.hub-description, .faq-wrap, [id$="-faq"].hub-description { max-width: 1000px; margin: 0 auto 2rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--hub-line); border-radius: 1rem; background: var(--hub-card); color: #39465a; line-height: 1.7; box-shadow: 0 7px 24px rgba(15, 23, 42, .045); }
.hub-description h2, .faq-wrap h2 { margin-top: 0; color: var(--hub-ink); }
.hub-content > h2 { margin: 2.5rem 0 1rem; font-size: clamp(1.35rem, 3vw, 1.8rem); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 1.25rem; width: 100%; margin: 0 0 3rem; }
.tool-card { min-width: 0; overflow: hidden; border: 1px solid var(--hub-line); border-radius: 1rem; background: var(--hub-card); box-shadow: 0 5px 18px rgba(15, 23, 42, .055); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.tool-card:hover { transform: translateY(-3px); border-color: #b8cae3; box-shadow: 0 14px 30px rgba(15, 23, 42, .1); }
.tool-card > a { display: flex; height: 100%; flex-direction: column; padding: 1rem; color: inherit !important; text-decoration: none !important; }
.tool-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; margin: 0 0 1rem !important; border-radius: .7rem !important; background: var(--hub-soft); }
.tool-card h3 { margin: 0 0 .45rem; color: var(--hub-ink); font-size: 1.08rem; line-height: 1.3; }
.tool-card p { margin: 0 0 .85rem; color: var(--hub-muted); font-size: .92rem; line-height: 1.55; }
.tool-card span { margin-top: auto; color: var(--hub-blue) !important; font-size: .9rem; font-weight: 700 !important; }
.tool-card[hidden] { display: none; }
.faq + .faq { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--hub-line); }
.faq h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.faq p { margin: 0; color: var(--hub-muted); }

@media (max-width: 640px) {
  .breadcrumbs, .hub-main { width: min(100% - 1rem, 1180px); }
  .hub-hero { padding: 1.5rem 1rem; border-radius: 1rem; }
  .trust-points { align-items: flex-start; flex-direction: column; width: max-content; margin-inline: auto; }
  .tool-grid { grid-template-columns: 1fr; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tool-card { transition: none; }
}
