/*
 * ToolkitPoint reference theme
 * Ported from the approved one-page design formerly served on localhost:4188.
 * This file loads after the legacy styles so the visual system is consistent
 * across the homepage, directory, categories, tools, guides, trust pages, and 404.
 */
:root {
  --ref-ink: #0b1220;
  --ref-ink-2: #121c2e;
  --ref-muted: #5b667a;
  --ref-line: #e4e9f2;
  --ref-blue: #2b5cf6;
  --ref-blue-dark: #1847df;
  --ref-purple: #6c45f7;
  --ref-cyan: #21d4fd;
  --ref-paper: #f7f9fc;
  --ref-white: #fff;
  --ref-radius: 22px;
  --ref-shadow: 0 18px 55px rgba(33, 50, 95, .12);
  --ink: var(--ref-ink);
  --ink-soft: #344158;
  --paper: var(--ref-paper);
  --raised: var(--ref-white);
  --line: var(--ref-line);
  --muted: var(--ref-muted);
  --accent: var(--ref-blue);
  --accent-dark: var(--ref-blue-dark);
  --accent-soft: #edf2ff;
  --cyan: var(--ref-cyan);
  --radius: var(--ref-radius);
  --shadow: var(--ref-shadow);
}

html { scroll-padding-top: 92px; }
body {
  background: var(--ref-paper);
  color: var(--ref-ink);
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.55;
}
h1, h2, h3, .brand, .button, button { font-family: Manrope, "DM Sans", sans-serif; }
.wrap { width: min(1320px, calc(100% - 48px)); }
.skip-link {
  position: fixed;
  top: -80px;
  left: 18px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: var(--ref-ink);
  box-shadow: var(--ref-shadow);
}
.skip-link:focus { top: 14px; }

/* Reference header, with the requested category dropdowns retained. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 0;
  padding: 0;
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(11, 18, 32, .07);
  backdrop-filter: blur(16px);
}
.site-header .nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 34px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ref-ink);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--ref-blue), var(--ref-purple));
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(43, 92, 246, .28);
}
.brand-word > span { color: var(--ref-blue); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-dropdown > summary {
  padding: 8px 9px;
  border-radius: 9px;
  color: #435067;
  font-family: "DM Sans", sans-serif;
  font-size: .83rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.nav-dropdown > summary:hover,
.nav-dropdown[open] > summary { background: #f0f4ff; color: var(--ref-blue); }
.nav-chevron { border-color: currentColor; }
.nav-mega {
  top: calc(100% + 8px);
  border: 1px solid rgba(43, 92, 246, .13);
  border-top: 4px solid var(--nav-color, var(--ref-blue));
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(33, 50, 95, .18);
}
.nav-mega-head { border-color: var(--ref-line); }
.nav-tool-link { border-radius: 10px; }
.nav-tool-link:hover { background: #f5f7ff; }
.nav-all {
  margin-left: 8px;
  padding: 8px 13px !important;
  border-radius: 10px;
  background: var(--ref-ink);
  color: #fff !important;
  font-size: .83rem;
  font-weight: 800;
  white-space: nowrap;
}
.nav-all:hover { background: var(--ref-blue); }
.nav-all span { color: #7ae7ff; }
.menu-button { margin-left: auto; }

/* Homepage hero from the approved reference. */
.reference-home-hero {
  min-height: 640px;
  position: relative;
  overflow: hidden;
  padding: 52px max(24px, calc((100vw - 1320px) / 2)) 88px;
  background: linear-gradient(122deg, #eef3ff 0%, #f7fbff 55%, #eafcff 100%);
  border: 0;
  border-bottom: 1px solid #dde7f6;
  border-radius: 0;
  text-align: left;
}
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(43, 92, 246, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 92, 246, .055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to right, #000, transparent 84%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb-one { width: 460px; height: 460px; right: -160px; top: -180px; background: rgba(33, 212, 253, .18); }
.orb-two { width: 330px; height: 330px; left: 48%; bottom: -250px; background: rgba(92, 70, 247, .13); }
.hero-content { position: relative; z-index: 2; max-width: 860px; margin: 0; }
.proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px 7px 8px;
  border: 1px solid rgba(43, 92, 246, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  color: #395072;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.proof-pill > span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ref-blue);
}
.proof-pill > span::after { content: "✓"; color: #fff; font-size: .7rem; }
.proof-pill.compact { font-size: .7rem; }
.proof-pill.compact > span { width: 20px; height: 20px; }
.reference-home-hero h1 {
  max-width: 900px;
  margin: 27px 0 23px;
  font-size: clamp(3.4rem, 6.5vw, 6.35rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.075em;
}
.reference-home-hero h1 em { color: var(--ref-blue); font-style: normal; }
.reference-home-hero h1 strong { font-weight: 800; white-space: nowrap; }
.reference-home-hero .hero-copy {
  max-width: 680px;
  margin: 0 0 30px;
  color: var(--ref-muted);
  font-size: clamp(1.06rem, 1.6vw, 1.25rem);
}
.finder {
  max-width: 790px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 9px 9px 20px;
  border: 1px solid rgba(43, 92, 246, .18);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(34, 61, 130, .15);
}
.search-glyph { color: #718098; font: 500 1.8rem/1 "DM Sans", sans-serif; }
.finder input {
  min-width: 0;
  flex: 1;
  padding: 8px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ref-ink);
  font-size: 1rem;
}
.finder input::placeholder { color: #8590a3; }
.finder button {
  flex: 0 0 auto;
  padding: 14px 20px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ref-blue), #7147eb);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(43, 92, 246, .26);
}
.finder button:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(43, 92, 246, .34); }
.popular-searches { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 15px; color: #6f7b8e; font-size: .82rem; }
.popular-searches span { font-weight: 700; }
.popular-searches a { padding: 2px 0; border-bottom: 1px solid #adb7c8; color: #40506c; text-decoration: none; }
.popular-searches a:hover { border-color: var(--ref-blue); color: var(--ref-blue); }
.hero-stack { position: absolute; z-index: 1; right: max(38px, calc((100vw - 1400px) / 2)); top: 110px; width: 265px; height: 390px; }
.float-card {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 18px;
  background: rgba(255, 255, 255, .84);
  box-shadow: var(--ref-shadow);
  backdrop-filter: blur(14px);
  animation: ref-float 6s ease-in-out infinite;
}
.card-private { top: 0; right: 0; width: 250px; display: flex; align-items: center; gap: 12px; padding: 16px; transform: rotate(2deg); }
.mini-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; background: #e8fff8; color: #0b926a; font-size: 1.35rem; font-weight: 800; }
.float-card strong { display: block; font-size: .88rem; }
.float-card small { display: block; color: #738097; font-size: .72rem; }
.live-dot { width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: #20c777; box-shadow: 0 0 0 5px rgba(32, 199, 119, .13); }
.card-speed { top: 140px; left: 10px; width: 170px; padding: 18px 21px; transform: rotate(-4deg); animation-delay: -2s; }
.speed-number { color: var(--ref-blue); font: 800 3.3rem/.8 Manrope, sans-serif; letter-spacing: -.08em; }
.speed-unit { color: var(--ref-blue); font-weight: 800; }
.card-speed small { margin-top: 10px; }
.card-count { right: 6px; bottom: 0; width: 206px; padding: 19px; }
.card-count strong { margin-top: 9px; font-size: 1.55rem; }
.rings { display: flex; }
.rings i { width: 28px; height: 28px; margin-right: -8px; border: 3px solid #fff; border-radius: 50%; background: var(--ref-blue); }
.rings i:nth-child(2) { background: #7a4df3; }
.rings i:nth-child(3) { background: var(--ref-cyan); }
@keyframes ref-float { 50% { translate: 0 -8px; } }

/* Category rail */
.home-category-rail { padding: 24px 0; border-bottom: 1px solid var(--ref-line); background: #fff; }
.home-category-rail > .wrap { display: flex; align-items: center; gap: 24px; }
.home-category-rail p { flex: 0 0 auto; margin: 0; color: #7a8598; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.category-rail {
  display: flex;
  flex: 1;
  flex-wrap: nowrap;
  gap: 9px;
  margin: 18px 0 30px;
  padding: 0;
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scrollbar-width: thin;
}
.home-category-rail .category-rail { margin: 0; }
.category-rail a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--ref-line);
  border-radius: 11px;
  background: #fff;
  color: #3d4b61;
  font-size: .8rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.category-rail a > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: color-mix(in srgb, var(--rail-color, var(--ref-blue)) 14%, white); color: var(--rail-color, var(--ref-blue)); font: 850 .58rem/1 'IBM Plex Mono', ui-monospace, monospace; }
.category-rail a:hover,
.category-rail a[aria-current="page"] { border-color: var(--ref-blue); background: #f2f6ff; color: var(--ref-blue); }

/* Shared card system. */
.section-head { align-items: end; margin-bottom: 30px; }
.section-head h2 { margin: 5px 0 0; font-size: clamp(2rem, 3.4vw, 3.4rem); letter-spacing: -.055em; }
.section-head p { margin: 0 0 4px; color: var(--ref-muted); }
.section-head > a { display: inline-flex; gap: 8px; align-items: center; color: var(--ref-blue); text-decoration: none; }
.kicker { color: var(--ref-blue); font-family: "DM Sans", sans-serif; font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.card {
  min-height: 224px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--ref-line);
  border-top: 1px solid var(--ref-line);
  border-radius: var(--ref-radius);
  background: #fff;
  color: var(--ref-ink);
  box-shadow: none;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card::after {
  content: "→";
  position: absolute;
  right: 20px;
  bottom: 17px;
  color: var(--card-color, var(--ref-blue));
  font: 800 1.15rem/1 Manrope, sans-serif;
  transition: transform .2s;
}
.card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 22px 55px rgba(35, 49, 85, .13); }
.card:hover::after { transform: translateX(5px); }
.card-heading { display: flex; align-items: flex-start; gap: 15px; }
.card-title { min-width: 0; padding-top: 2px; }
.tool-icon { width: 46px; height: 46px; flex: 0 0 auto; margin: 0; border-radius: 13px; font-family: Manrope, sans-serif; }
.card .tag { display: block; margin: 0 0 5px; color: var(--card-color, var(--ref-blue)); font-family: "DM Sans", sans-serif; font-size: .65rem; letter-spacing: .08em; }
.card h2, .card h3 { margin: 0; font-size: 1.08rem; line-height: 1.2; letter-spacing: -.025em; }
.card > p { margin: 18px 0 26px; color: #69758a; font-size: .9rem; line-height: 1.55; }
.reference-popular { padding-top: 56px; padding-bottom: 64px; }
.reference-tool-grid .reference-tool-card { min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; }
.reference-tool-grid .reference-tool-card::after { display: none; }
.reference-tool-grid .feature { grid-column: span 2; border: 0; background: linear-gradient(145deg, #224ce5, #694bea); color: #fff; }
.reference-tool-grid .feature::before { content: ""; position: absolute; width: 210px; height: 210px; right: -55px; top: -75px; border: 34px solid rgba(255, 255, 255, .08); border-radius: 50%; }
.tool-card-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.tool-badge { padding: 5px 8px; border-radius: 999px; background: #eefbf5; color: #12805e; font-size: .66rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.feature .tool-icon, .feature .tool-badge { background: rgba(255, 255, 255, .17); color: #fff; }
.tool-card-copy { position: relative; z-index: 1; }
.reference-tool-card .tag { margin-bottom: 7px; }
.reference-tool-card h3 { font-size: 1.3rem; }
.reference-tool-card p { margin: 8px 0 0; color: #69758a; }
.reference-tool-card.feature p { color: rgba(255, 255, 255, .78); }
.reference-tool-card.feature .tag { color: rgba(255, 255, 255, .72); }
.open-tool { position: relative; z-index: 1; color: var(--card-color, var(--ref-blue)); font-size: .85rem; font-weight: 800; }
.feature .open-tool { color: #fff; }
.open-tool b { display: inline-block; margin-left: 4px; transition: transform .2s; }
.reference-tool-card:hover .open-tool b { transform: translateX(5px); }
.browse-button { display: flex; width: max-content; align-items: center; gap: 14px; margin: 34px auto 0; padding: 13px 19px; border-radius: 13px; background: var(--ref-ink); color: #fff; font-weight: 800; text-decoration: none; }
.browse-button span { color: var(--ref-cyan); }
.home-category { padding: 48px 0; }
.home-category + .home-category { border-top: 1px solid var(--ref-line); }
.home-category:nth-of-type(even) { position: relative; }

/* Dark promise block from the reference. */
.promise {
  max-width: 1440px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  position: relative;
  overflow: hidden;
  margin: 25px auto 70px;
  border-radius: 32px;
  background: var(--ref-ink);
  color: #fff;
}
.promise::before { content: ""; position: absolute; width: 500px; height: 500px; left: -230px; bottom: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(43, 92, 246, .33), transparent 68%); }
.promise-copy { position: relative; padding: 56px clamp(30px, 5vw, 76px); }
.kicker.light { color: #78dcff; }
.promise h2 { margin: 8px 0 0; color: #fff; font-size: clamp(2.4rem, 4vw, 4rem); line-height: 1.04; letter-spacing: -.055em; }
.promise h2 em { color: #6c8dff; font-style: normal; }
.promise-copy p { max-width: 490px; margin: 24px 0 31px; color: #aeb8ca; font-size: 1.04rem; }
.promise-copy a { padding-bottom: 4px; border-bottom: 1px solid #526079; color: #fff; font-weight: 800; text-decoration: none; }
.promise-copy a span { color: var(--ref-cyan); }
.promise-list { display: grid; padding: 40px; background: var(--ref-ink-2); }
.promise-list article { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; padding: 24px 0; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.promise-list article:last-child { border: 0; }
.promise-list article > span { padding-top: 5px; color: #6e8fff; font-size: .75rem; font-weight: 700; }
.promise-list h3 { margin: 0 0 5px; color: #fff; font-size: 1.1rem; }
.promise-list p { margin: 0; color: #919db1; font-size: .92rem; }

/* Internal-page heroes and directories use the same reference language. */
.page-main { padding-top: 0; }
.breadcrumbs { gap: 8px; padding: 18px 2px 10px; color: #7b879a; font-size: .82rem; }
.breadcrumbs a { color: #59677c; text-decoration: none; }
.breadcrumbs a:hover { color: var(--ref-blue); }
.reference-page-hero,
.page-hero,
.directory-hero {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  padding: clamp(40px, 5vw, 64px) clamp(25px, 6vw, 80px);
  border: 1px solid rgba(43, 92, 246, .14);
  border-radius: 28px;
  background: linear-gradient(122deg, var(--page-tint, #eef3ff) 0%, #f7fbff 58%, #eafcff 100%);
  text-align: left;
}
.reference-page-hero::after { content: ""; position: absolute; width: 330px; height: 330px; right: -130px; top: -150px; border-radius: 50%; background: color-mix(in srgb, var(--page-accent, var(--ref-cyan)) 13%, transparent); pointer-events: none; }
.page-hero > *:not(.hero-grid) { position: relative; z-index: 1; }
.page-hero .hero-tool-mark { margin: 0 0 18px; }
.page-hero .proof-pill { margin-bottom: 18px; }
.page-hero .tool-title { max-width: 900px; margin: 0 0 18px; font-size: clamp(3rem, 6vw, 5.6rem); line-height: .98; letter-spacing: -.07em; }
.page-hero .tool-title em { color: var(--page-accent, var(--ref-blue)); font-style: normal; }
.page-hero .lead { max-width: 760px; margin: 0; color: var(--ref-muted); font-size: 1.1rem; }
.page-hero .trust-line { justify-content: flex-start; margin-top: 24px; }
.hero-tool-mark { width: 58px; height: 58px; border-radius: 17px; background: #fff; color: var(--page-accent, var(--ref-blue)); box-shadow: 0 12px 28px color-mix(in srgb, var(--page-accent, var(--ref-blue)) 17%, transparent); font-family: Manrope, sans-serif; }
.directory-search {
  max-width: 790px;
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 30px 0 8px;
  padding: 11px 20px;
  border: 1px solid rgba(43, 92, 246, .18);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(34, 61, 130, .14);
}
.directory-search input { padding: 10px 0; }
.directory-count { text-align: left; }
.filters { justify-content: flex-start; margin: 0 0 32px; }
.filter { border-radius: 11px; }
.filter.active { background: var(--ref-blue); border-color: var(--ref-blue); }
.directory-results { padding-bottom: 64px; }
.result-count { padding: 7px 12px; border-radius: 999px; background: #fff; }

/* Category hubs. */
.category-guide { gap: 16px; }
.category-guide > div {
  min-height: 190px;
  padding: 25px !important;
  border: 1px solid var(--ref-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}
.category-guide h2 { font-size: 1.15rem; }
.category-guide p { color: var(--ref-muted); }
.guide-number { color: color-mix(in srgb, var(--page-accent) 18%, #fff); }
.category-jump { margin: 24px 0; padding: 18px 20px; border: 1px solid var(--ref-line); border-left: 4px solid var(--page-accent); border-radius: 14px; background: #fff; }
.category-jump a { border-radius: 999px; text-decoration: none; }
.hub-note { margin-bottom: 70px !important; }

/* Tool pages: keep the engine-owned panel intact, redesign its surroundings. */
.tool-page .reference-page-hero {
  margin: 0 0 22px;
  padding: clamp(30px, 4vw, 52px);
  text-align: left;
}
.tool-page .tool-identity { position: relative; z-index: 1; gap: 22px; }
.tool-page .tool-identity .proof-pill { margin-bottom: 12px; }
.tool-page .tool-title { margin: 0 0 11px; font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -.065em; }
.tool-page .tool-intro .lead { max-width: 78ch; color: var(--ref-muted); }
.tool-page .tool-free { position: relative; z-index: 1; justify-content: flex-start; margin: 20px 0 0 80px; }
.tool-layout { grid-template-columns: minmax(0, 1fr) 285px; gap: 24px; }
.tool-main > .tool-panel {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--ref-line);
  border-top: 5px solid var(--page-accent, var(--ref-blue));
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 52px color-mix(in srgb, var(--page-accent, var(--ref-blue)) 10%, transparent);
}
.tool-panel button:not(.secondary),
.tool-panel .button:not(.secondary) { border-color: var(--ref-blue); background: linear-gradient(135deg, var(--ref-blue), #5c48ec); }
.tool-panel button:not(.secondary):hover,
.tool-panel .button:not(.secondary):hover { background: linear-gradient(135deg, var(--ref-blue-dark), #4935d6); }
.tool-panel input,
.tool-panel textarea,
.tool-panel select { border-color: #cfd8e6; border-radius: 11px; }
.tool-panel input:focus,
.tool-panel textarea:focus,
.tool-panel select:focus { border-color: var(--ref-blue); box-shadow: 0 0 0 3px rgba(43, 92, 246, .12); outline: 0; }
.related-card { top: 96px; padding: 24px; border: 1px solid var(--ref-line); border-top: 5px solid var(--page-accent); border-radius: 18px; background: #fff; box-shadow: none; }
.related-card h2 { margin: 8px 0 10px; }
.related-card .link-list a { color: #344158; }
.related-card .button { border-radius: 11px; }
.content-card {
  margin-top: 22px !important;
  margin-bottom: 64px;
  padding: clamp(28px, 4vw, 48px) !important;
  border: 1px solid var(--ref-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(33, 50, 95, .05);
}
.content-card > .kicker + h2 { margin-top: 10px; }
.content-card h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
.faq details { border-color: var(--ref-line); }

/* Trust pages and guides. */
.prose-shell { padding: 36px 0 56px; }
.prose-shell::before { height: 430px; background: linear-gradient(122deg, #eef3ff, #eafcff); }
.longform-card {
  max-width: 920px !important;
  padding: clamp(34px, 6vw, 78px) !important;
  border: 1px solid var(--ref-line);
  border-top: 0;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(33, 50, 95, .12);
}
.longform-card > .kicker { display: inline-flex; padding: 7px 11px; border: 1px solid rgba(43, 92, 246, .14); border-radius: 999px; background: #eef3ff; }
.longform-card > .tool-title { margin: 17px 0 20px; font-size: clamp(3rem, 6vw, 5.2rem); line-height: 1; letter-spacing: -.07em; }
.longform-card > .lead { color: var(--ref-muted); font-size: 1.18rem; }
.longform-card h2 { margin-top: 42px; }
.research-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 34px; }
.table-scroll { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: 16px; }
.table-scroll table { margin: 0; min-width: 650px; }
.benchmark-scene { margin: 36px 0; }
.benchmark-images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.benchmark-images figure { margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.benchmark-images img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; }
.benchmark-images figcaption { padding: 10px 12px; color: var(--ref-muted); font-size: .9rem; font-weight: 700; }
.guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Footer keeps all trust links while matching the reference. */
.site-footer { margin-top: 0; padding: 0; border-top: 1px solid var(--ref-line); background: #fff; }
.footer-promise { padding: 38px 0; border-bottom: 1px solid var(--ref-line); }
.footer-promise h2 { margin: 6px 0 4px; letter-spacing: -.04em; }
.footer-promise .button { border: 0; border-radius: 13px; background: var(--ref-ink); }
.footer-promise .button:hover { background: var(--ref-blue); }
.footer-grid { padding: 42px 0 46px; }
.footer-grid strong { color: var(--ref-ink); }
.footer-grid .link-list a { color: #526075; }
.copyright { font-size: .78rem; }

@media (max-width: 1180px) {
  .hero-content { max-width: 760px; }
  .hero-stack { right: -60px; opacity: .5; }
  .nav-links { gap: 1px; }
}

@media (max-width: 1024px) {
  .site-header .nav { min-height: 68px; flex-wrap: wrap; padding: 10px 0; }
  .menu-button { display: block; padding: 9px 13px; border-radius: 10px; }
  .nav-links { display: none; width: 100%; order: 5; padding: 10px 0 14px; }
  .nav-links.open { display: flex; }
  .nav-all { margin: 4px 0 0; text-align: center; }
}

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reference-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reference-tool-grid .feature { grid-column: span 2; }
  .promise { margin-inline: 20px; }
  .tool-layout { grid-template-columns: minmax(0, 1fr) 250px; }
}

@media (max-width: 820px) {
  .wrap { width: min(100% - 32px, 1320px); }
  .reference-home-hero { min-height: 590px; padding-top: 56px; }
  .hero-stack { right: -120px; opacity: .35; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-layout { grid-template-columns: 1fr; }
  .related-card { position: static; }
  .promise { grid-template-columns: 1fr; }
  .promise-list { padding: 24px 30px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .wrap { width: min(100% - 22px, 1320px); }
  .brand { font-size: 1.08rem; }
  .brand-mark { width: 35px; height: 35px; }
  .reference-home-hero { min-height: auto; padding: 40px 18px 46px; }
  .reference-home-hero h1 { font-size: clamp(2.75rem, 14vw, 4rem); }
  .reference-home-hero h1 strong { white-space: normal; }
  .hero-stack { display: none; }
  .finder { flex-wrap: wrap; padding: 9px; }
  .finder .search-glyph { margin-left: 7px; }
  .finder input { width: calc(100% - 52px); min-height: 42px; }
  .finder button { width: 100%; }
  .home-category-rail { padding: 18px 0; }
  .home-category-rail > .wrap { display: block; }
  .home-category-rail p { margin: 0 0 10px; }
  .grid,
  .reference-tool-grid,
  .guide-grid { grid-template-columns: 1fr; }
  .reference-tool-grid .feature { grid-column: auto; }
  .reference-popular { padding: 44px 0 48px; }
  .home-category { padding: 36px 0; }
  .section-head { align-items: flex-start; }
  .section-head > p { display: block; margin-top: 10px; }
  .section-head h2 { font-size: 2.15rem; }
  .card { min-height: 205px; }
  .promise { margin: 10px 11px 38px; border-radius: 22px; }
  .promise-copy { padding: 38px 26px; }
  .promise-list { padding: 18px 26px; }
  .reference-page-hero,
  .page-hero,
  .directory-hero { margin-top: 8px; padding: 34px 20px; border-radius: 20px; }
  .page-hero .tool-title { font-size: 2.7rem; }
  .directory-search { align-items: center; padding: 8px 13px; }
  .category-rail { margin-bottom: 22px; }
  .category-guide { grid-template-columns: 1fr; }
  .tool-page .reference-page-hero { padding: 26px 20px; }
  .tool-page .tool-identity { display: block; }
  .tool-page .tool-identity .hero-tool-mark { margin-bottom: 17px; }
  .tool-page .tool-title { font-size: 2.65rem; }
  .tool-page .tool-free { margin-left: 0; }
  .tool-main > .tool-panel { padding: 18px 14px; border-radius: 16px; }
  .content-card { padding: 26px 20px !important; }
  .prose-shell { padding: 20px 0 36px; }
  .longform-card { padding: 34px 22px !important; border-radius: 20px; }
  .longform-card > .tool-title { font-size: 2.8rem; }
  .benchmark-images { grid-template-columns: 1fr; }
  .footer-promise { display: grid; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .float-card { animation: none; }
}
