:root {
  color-scheme: light;
  --ink: #162033;
  --muted: #52617a;
  --line: #dce3ee;
  --surface: #fff;
  --wash: #f4f7fb;
  --accent: #155eef;
  --accent-dark: #0046c7;
  --radius: 18px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--wash); color: var(--ink); font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 2; background: #fff; padding: .6rem 1rem; border-radius: 8px; }
.site-header, main, footer { width: min(1120px, calc(100% - 2rem)); margin: auto; }
.site-header { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--ink); font-size: 1.25rem; font-weight: 800; text-decoration: none; }
.site-header nav, footer p:last-child { display: flex; gap: 1rem; }
.site-header a, footer a { color: var(--muted); text-decoration: none; }
.site-header a:hover, footer a:hover { color: var(--accent); text-decoration: underline; }

.hero { padding: 5rem clamp(1.5rem, 7vw, 6rem); background: linear-gradient(125deg, #e9f0ff, #fff 65%); border: 1px solid #d7e2fb; border-radius: var(--radius); }
.eyebrow, .tool-card > p:first-child { margin: 0 0 .5rem; color: var(--accent); font-size: .85rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(2.3rem, 6vw, 4.5rem); letter-spacing: -.055em; line-height: 1.03; }
.hero > p:not(.eyebrow) { max-width: 680px; color: var(--muted); font-size: 1.1rem; }
.primary-link, .tool-link { display: inline-flex; align-items: center; min-height: 44px; padding: .75rem 1rem; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; }
.primary-link:hover { background: var(--accent-dark); }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 2.5rem 0; }
.trust article, .tool-card { padding: 1.35rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.trust h2 { margin: 0; font-size: 1.1rem; }
.trust p, .tool-card > p { color: var(--muted); }

.tool-section { padding: 2rem 0 4rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.section-heading h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -.035em; }
.search { display: grid; gap: .35rem; font-weight: 700; }
.search input { width: min(300px, 100%); min-height: 44px; padding: .7rem .8rem; border: 1px solid #b7c3d4; border-radius: 9px; font: inherit; }
.tool-count { color: var(--muted); }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tool-card { display: flex; min-height: 220px; flex-direction: column; align-items: start; }
.tool-card h3 { margin: .2rem 0; font-size: 1.25rem; }
.tool-card h3 a { color: var(--ink); text-decoration: none; }
.tool-card h3 a:hover { text-decoration: underline; }
.tool-card .tool-link { margin-top: auto; padding: .55rem .8rem; background: #e9f0ff; color: #0845b7; }
.tool-card .tool-link:hover { background: #dbe7ff; }

footer { display: flex; justify-content: space-between; padding: 2rem 0; color: var(--muted); font-size: .94rem; }

@media (max-width: 760px) {
  .hero { padding: 3.5rem 1.5rem; }
  .trust, .tool-grid { grid-template-columns: 1fr; }
  .section-heading, footer { flex-direction: column; align-items: start; gap: 1rem; }
  .search, .search input { width: 100%; }
  .site-header { height: 64px; }
  .site-header nav { gap: .75rem; }
}
