.tools-hero {
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  background: linear-gradient(180deg, #eef6ff 0%, #fff 100%);
  text-align: center;
}

.tools-hero .site-container { max-width: 920px; }
.tools-hero h1 {
  margin: 1rem auto 0;
  max-width: 780px;
  color: var(--color-text);
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}
.tools-hero__copy {
  max-width: 680px;
  margin: 1.4rem auto 0;
  color: var(--color-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.6;
}

.tools-library { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.tools-library__head { max-width: 680px; margin-bottom: 2rem; }
.tools-library__head h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.05; }
.tools-library__head p { margin: 0.9rem 0 0; color: var(--color-muted); font-size: 1.05rem; line-height: 1.65; }
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
  gap: 1rem;
}
.tool-card {
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid #cadced;
  border-radius: 8px;
  background: #eef6ff;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.tool-card::after {
  position: absolute;
  right: -58px;
  bottom: -65px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(0, 113, 227, 0.2);
  border-radius: 50%;
  content: "";
}
.tool-card:hover,
.tool-card:focus-within { border-color: #0071e3; box-shadow: 0 20px 50px rgba(0, 75, 145, 0.12); transform: translateY(-3px); }
.tool-card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tool-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #0071e3;
  font-size: 1.55rem;
  line-height: 1;
}
.tool-card__status { color: #0062c4; font-size: 0.78rem; font-weight: 750; text-transform: uppercase; }
.tool-card h3 { margin: auto 0 0.7rem; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.05; }
.tool-card p { max-width: 520px; margin: 0; color: var(--color-muted); line-height: 1.6; }
.tool-card__link { position: relative; z-index: 1; align-self: flex-start; margin-top: 1.4rem; color: #0068ce; font-weight: 700; }
.tool-card__link::after { position: absolute; inset: -12px; content: ""; }
.tool-card__link:focus-visible { outline: 3px solid #0068ce; outline-offset: 5px; }

.roadmap-hero {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(180deg, #eef6ff 0%, #fff 100%);
}
.roadmap-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.58fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.roadmap-hero h1 { margin: 1rem 0 0; font-size: clamp(3rem, 7vw, 6.6rem); line-height: 0.95; letter-spacing: 0; }
.roadmap-hero__copy { max-width: 700px; margin: 1.3rem 0 0; color: var(--color-muted); font-size: clamp(1.08rem, 1.8vw, 1.32rem); line-height: 1.6; }
.roadmap-hero .ratings-form-panel {
  position: static;
  top: auto;
  border-color: #aecdeb;
  box-shadow: 0 24px 70px rgba(0, 72, 145, 0.14);
}
.roadmap-context { padding: clamp(2.5rem, 5vw, 4.5rem) 0; border-bottom: 1px solid var(--color-border); }
.roadmap-context__inner { max-width: 900px; }
.roadmap-context .roadmap-hero__copy:first-child { margin-top: 0; }
.platform-scope { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; margin-top: 1.35rem; }
.platform-scope__label { color: #405063; font-size: 0.88rem; font-weight: 700; }
.platform-scope span:not(.platform-scope__label) { padding: 0.48rem 0.7rem; border: 1px solid #c4d9ed; border-radius: 999px; background: rgba(255,255,255,0.72); color: #33516f; font-size: 0.82rem; }

.ratings-tool { padding: 0 0 clamp(4rem, 8vw, 7rem); }
.ratings-workbench {
  display: block;
}
.ratings-form-panel,
.ratings-results {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(0, 54, 105, 0.08);
}
.ratings-form-panel { position: sticky; top: 88px; padding: clamp(1.3rem, 3vw, 2rem); }
.ratings-form-panel h2 { margin: 0; font-size: clamp(1.55rem, 2.8vw, 2.25rem); }
.ratings-form-panel > p { margin: 0.7rem 0 0; color: var(--color-muted); line-height: 1.6; }
.ratings-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.ratings-field { display: grid; gap: 0.45rem; }
.ratings-field label { font-size: 0.92rem; font-weight: 700; }
.ratings-field input {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 0.9rem;
  border: 1px solid #bdc7d2;
  border-radius: 7px;
  background: #fff;
  color: var(--color-text);
  font: inherit;
  font-size: 1.05rem;
}
.ratings-field input:focus { border-color: #0071e3; outline: 3px solid rgba(0, 113, 227, 0.18); }
.ratings-form button { width: 100%; margin-top: 0.3rem; }
.ratings-error { min-height: 1.45em; margin: 0; color: #b42318; font-size: 0.9rem; line-height: 1.45; }
.ratings-method { padding-top: 1rem; border-top: 1px solid var(--color-border); color: var(--color-muted); font-size: 0.82rem; line-height: 1.55; }
.ratings-method a { color: #0068ce; text-decoration: underline; text-underline-offset: 3px; }

.ratings-results { min-height: 520px; padding: clamp(1.3rem, 3.5vw, 2.4rem); }
.ratings-results[hidden] { display: none; }
.ratings-summary { padding: clamp(1.25rem, 3vw, 2rem); border-radius: 8px; background: #eaf4ff; }
.ratings-summary__eyebrow { margin: 0; color: #0068ce; font-size: 0.82rem; font-weight: 800; text-transform: uppercase; }
.ratings-summary h2 { margin: 0.55rem 0 0; font-size: clamp(2rem, 4.5vw, 4.2rem); line-height: 1; text-wrap: balance; }
.ratings-summary h2 strong { color: #0068ce; }
.ratings-summary__copy { max-width: 690px; margin: 0.9rem 0 0; color: #405063; line-height: 1.6; }
.ratings-facts { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.2rem; }
.ratings-facts span { padding: 0.55rem 0.75rem; border: 1px solid #c6d9ec; border-radius: 999px; background: rgba(255,255,255,0.7); color: #3e5369; font-size: 0.86rem; }

.roadmap-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 0.65fr); gap: 1rem; margin-top: 1rem; }
.roadmap-panel { min-width: 0; padding: clamp(1.1rem, 2.5vw, 1.6rem); border: 1px solid var(--color-border); border-radius: 8px; }
.roadmap-panel--positive { background: #f8fbff; }
.roadmap-panel--negative { background: #fbfbfc; }
.roadmap-panel__head h3 { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.65rem); }
.roadmap-panel__head p { margin: 0.5rem 0 0; color: var(--color-muted); font-size: 0.92rem; line-height: 1.5; }
.rating-timeline {
  position: relative;
  display: grid;
  gap: 0;
  max-height: 540px;
  margin: 1.2rem 0 0;
  padding: 0 0 0 1.45rem;
  overflow-y: auto;
  list-style: none;
  scrollbar-width: thin;
}
.rating-timeline::before { position: absolute; top: 0.65rem; bottom: 0.65rem; left: 0.36rem; width: 2px; background: #bed9f3; content: ""; }
.roadmap-panel--negative .rating-timeline::before { background: #e1c7c2; }
.rating-timeline li { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 0.75rem; padding: 0.55rem 0 1rem; }
.rating-timeline li::before { position: absolute; top: 0.78rem; left: -1.34rem; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: #0071e3; box-shadow: 0 0 0 2px #0071e3; content: ""; }
.roadmap-panel--negative .rating-timeline li::before { background: #a33c2f; box-shadow: 0 0 0 2px #a33c2f; }
.rating-timeline__rating { color: #0068ce; font-size: 1.08rem; font-weight: 800; }
.roadmap-panel--negative .rating-timeline__rating { color: #8b3026; }
.rating-timeline__detail { color: #46576a; font-size: 0.92rem; line-height: 1.45; }
.rating-timeline__detail strong { color: var(--color-text); font-size: 1.02rem; }
.ratings-note { margin: 1rem 0 0; color: var(--color-muted); font-size: 0.82rem; line-height: 1.55; }
.ratings-empty { display: grid; min-height: 460px; place-items: center; color: var(--color-muted); text-align: center; }

@media (max-width: 860px) {
  .roadmap-hero__layout { grid-template-columns: 1fr; }
  .ratings-form-panel { position: static; }
  .roadmap-columns { grid-template-columns: 1fr; }
  .rating-timeline { max-height: 420px; }
}

@media (max-width: 560px) {
  .tools-hero { text-align: left; }
  .tools-hero .page-breadcrumb { justify-content: flex-start; }
  .tools-hero h1 { margin-left: 0; }
  .tools-hero__copy { margin-left: 0; }
  .tool-card { min-height: 270px; }
  .roadmap-hero h1 { font-size: 3.1rem; }
  .platform-scope { align-items: flex-start; }
  .platform-scope__label { width: 100%; }
  .ratings-summary h2 { font-size: 2.2rem; }
  .ratings-facts { display: grid; }
}

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