.page-products {
  --tools-radius: 24px;
  --tools-gap: clamp(20px, 3vw, 36px);
  --tools-line: rgba(159, 184, 200, .18);
  --tools-panel: #F4EFE4;
  position: relative;
  padding-bottom: clamp(56px, 8vw, 110px);
  background-image:
    linear-gradient(rgba(159, 184, 200, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 184, 200, .07) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px;
  background-position: 0 0, 0 0;
}

.page-products .breadcrumb {
  margin: clamp(18px, 4vw, 34px) 0 clamp(20px, 3vw, 30px);
}
.page-products .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .8125rem;
  letter-spacing: .04em;
  color: var(--c-mist);
}
.page-products .breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(159, 184, 200, .5);
}
.page-products .breadcrumb a {
  color: var(--c-cyan);
  text-decoration: none;
}
.page-products .breadcrumb a:hover {
  text-decoration: underline;
}
.page-products .breadcrumb [aria-current="page"] {
  color: var(--c-paper);
}

/* ---------- Hero ---------- */
.page-products .tools-hero {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding-bottom: clamp(32px, 5vw, 56px);
}
.page-products .tools-hero__copy h1 {
  margin: 12px 0 18px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--c-paper);
}
.page-products .tools-hero__copy .lead {
  max-width: 40rem;
  color: var(--c-mist);
  font-size: clamp(1rem, 1.6vw, 1.0625rem);
  line-height: 1.8;
}
.page-products .tools-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.page-products .tools-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 34px);
  margin: 30px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--tools-line);
  list-style: none;
}
.page-products .tools-hero__facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 130px;
}
.page-products .fact-num {
  font-family: var(--font-num);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1;
  color: var(--c-cyan);
}
.page-products .fact-label {
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--c-mist);
  max-width: 15rem;
}
.page-products .tools-hero__visual {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-panel);
}

/* ---------- Panel overview ---------- */
.page-products .tools-panel {
  padding: clamp(28px, 5vw, 54px) 0 clamp(24px, 4vw, 44px);
}
.page-products .tools-panel__head {
  max-width: 46rem;
}
.page-products .tools-panel__head h2 {
  margin: 10px 0 12px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1.2;
  color: var(--c-paper);
}
.page-products .tools-panel__intro {
  color: var(--c-mist);
  line-height: 1.75;
}
.page-products .tool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 28px;
  padding: 14px;
  border: 1px solid var(--tools-line);
  border-radius: var(--r-pill);
  background: rgba(11, 37, 69, .55);
}
.page-products .tool-cards {
  display: grid;
  gap: var(--tools-gap);
  grid-template-columns: 1fr;
}
.page-products .tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--tools-radius);
  background: linear-gradient(160deg, rgba(244, 239, 228, .97), rgba(244, 239, 228, .88));
  color: var(--c-ink);
  box-shadow: var(--shadow-panel);
  transition: opacity .18s ease, transform .18s ease;
}
.page-products .tool-card:nth-child(even) {
  background: linear-gradient(160deg, rgba(11, 37, 69, .96), rgba(7, 27, 47, .96));
  color: var(--c-paper);
  border: 1px solid rgba(53, 224, 224, .28);
}
.page-products .tool-card__index {
  font-family: var(--font-num);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: .06em;
  color: var(--c-violet);
}
.page-products .tool-card:nth-child(even) .tool-card__index {
  color: var(--c-cyan);
}
.page-products .tool-card h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.3;
}
.page-products .tool-card p {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.75;
  opacity: .85;
}
.page-products .tool-card__fit {
  font-size: .8125rem !important;
  letter-spacing: .02em;
  opacity: .68 !important;
  padding-top: 10px;
  border-top: 1px dashed rgba(107, 122, 136, .4);
}
.page-products .tool-card:nth-child(even) .tool-card__fit {
  border-top-color: rgba(159, 184, 200, .3);
}
.page-products .tool-card__link {
  align-self: flex-start;
  margin-top: auto;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--c-violet-ink);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}
.page-products .tool-card:nth-child(even) .tool-card__link {
  color: var(--c-cyan);
}
.page-products .tool-card__link:hover {
  opacity: .75;
}
.page-products .tool-card[hidden] {
  display: none;
}
.page-products .tool-empty {
  margin: 0;
  padding: 26px;
  border: 1px dashed var(--tools-line);
  border-radius: var(--tools-radius);
  color: var(--c-mist);
  font-size: .9375rem;
}
.page-products .tool-empty[hidden] {
  display: none;
}

/* ---------- Detail sections ---------- */
.page-products .tool-detail {
  padding: clamp(30px, 5vw, 60px) 0;
}
.page-products .tool-detail__grid {
  display: grid;
  gap: clamp(20px, 3.5vw, 40px);
  align-items: start;
}
.page-products .tool-detail__body h2,
.page-products .tool-detail__head h2 {
  margin: 10px 0 16px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  line-height: 1.22;
  color: var(--c-paper);
}
.page-products .tool-detail__head {
  max-width: 48rem;
}
.page-products .tool-detail__head p {
  color: var(--c-mist);
  line-height: 1.8;
}
.page-products .tool-detail__body p {
  margin: 0 0 16px;
  color: var(--c-mist);
  line-height: 1.8;
  font-size: 1rem;
}
.page-products .tool-detail__points {
  list-style: none;
  margin: 22px 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.page-products .tool-detail__points li {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  padding: 12px 16px;
  border-left: 3px solid var(--c-cyan);
  background: rgba(11, 37, 69, .6);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--c-paper);
  font-size: .9375rem;
  line-height: 1.6;
}
.page-products .point-key {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--c-violet);
  text-transform: uppercase;
}
.page-products .tool-detail__copyline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px !important;
}
.page-products .btn--small {
  padding: 9px 16px;
  font-size: .8125rem;
  border-radius: var(--r-pill);
}

.page-products .panel-callout {
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--tools-radius);
  background: linear-gradient(150deg, rgba(123, 92, 255, .22), rgba(53, 224, 224, .12));
  border: 1px solid rgba(123, 92, 255, .4);
}
.page-products .panel-callout__label {
  margin: 0 0 12px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--c-cyan);
  text-transform: uppercase;
}
.page-products .panel-callout p:last-child {
  margin: 0;
  color: var(--c-paper);
  line-height: 1.8;
  font-size: .9375rem;
}

/* records module */
.page-products .tool-detail--records .tool-detail__media {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.page-products .record-bar {
  position: relative;
  height: 10px;
  border-radius: var(--r-pill);
  background: rgba(159, 184, 200, .16);
  overflow: hidden;
}
.page-products .record-bar__fill {
  position: absolute;
  inset: 0 32% 0 0;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--c-violet), var(--c-cyan));
}
.page-products .record-bar__tick {
  position: absolute;
  right: 0;
  top: -30px;
  font-family: var(--font-num);
  font-size: .8125rem;
  font-weight: 900;
  color: var(--c-cyan);
  letter-spacing: .05em;
}
.page-products .spec-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  margin: 24px 0 4px;
  padding: 18px;
  border: 1px solid var(--tools-line);
  border-radius: var(--r-md);
  background: rgba(11, 37, 69, .6);
}
.page-products .spec-strip__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.page-products .spec-strip__num {
  font-family: var(--font-num);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--c-cyan);
}
.page-products .spec-strip__label {
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--c-mist);
}

/* quota module */
.page-products .quota-grid {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
}
.page-products .quota-cell {
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: rgba(11, 37, 69, .72);
  border: 1px solid var(--tools-line);
}
.page-products .quota-cell--coral {
  border-color: rgba(255, 107, 74, .5);
  background: rgba(255, 107, 74, .1);
}
.page-products .quota-cell__key {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--c-paper);
  margin-bottom: 6px;
}
.page-products .quota-cell--coral .quota-cell__key {
  color: var(--c-coral);
}
.page-products .quota-cell__desc {
  font-size: .875rem;
  line-height: 1.7;
  color: var(--c-mist);
}

/* index module */
.page-products .index-map {
  margin: clamp(22px, 3vw, 32px) 0;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.page-products .index-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.page-products .index-legend__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  padding: 15px 18px;
  border-radius: var(--r-md);
  background: rgba(11, 37, 69, .62);
  border-left: 4px solid var(--c-violet);
}
.page-products .index-legend__item:nth-child(3n+2) {
  border-left-color: var(--c-cyan);
}
.page-products .index-legend__item:nth-child(3n) {
  border-left-color: var(--c-signal);
}
.page-products .index-legend__code {
  font-family: var(--font-num);
  font-weight: 900;
  font-size: .875rem;
  letter-spacing: .08em;
  color: var(--c-cyan);
  min-width: 3.5rem;
}
.page-products .index-legend__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--c-paper);
}
.page-products .index-legend__meta {
  margin-left: auto;
  font-size: .8125rem;
  color: var(--c-mist);
}

/* versions module */
.page-products .version-list {
  list-style: none;
  margin: 22px 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.page-products .version-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: rgba(11, 37, 69, .6);
  color: var(--c-paper);
  font-size: .9375rem;
  line-height: 1.65;
}
.page-products .version-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 22px;
  padding: 0 8px;
  position: relative;
}
.page-products .version-scale::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(53, 224, 224, .5), rgba(123, 92, 255, .5), rgba(255, 107, 74, .5));
}
.page-products .version-scale__node {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c-violet);
  box-shadow: 0 0 0 5px rgba(123, 92, 255, .2);
}
.page-products .version-scale__node--cyan {
  background: var(--c-cyan);
  box-shadow: 0 0 0 5px rgba(53, 224, 224, .2);
}
.page-products .version-scale__node--coral {
  background: var(--c-coral);
  box-shadow: 0 0 0 5px rgba(255, 107, 74, .2);
}

/* ---------- Flow ---------- */
.page-products .tool-flow {
  padding: clamp(30px, 5vw, 56px) 0;
}
.page-products .tool-flow__head {
  max-width: 44rem;
}
.page-products .tool-flow__head h2 {
  margin: 10px 0 12px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1.2;
  color: var(--c-paper);
}
.page-products .tool-flow__head p {
  color: var(--c-mist);
  line-height: 1.75;
}
.page-products .flow-steps {
  list-style: none;
  counter-reset: flow;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: var(--tools-gap);
}
.page-products .flow-step {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: var(--tools-radius);
  background: var(--tools-panel);
  color: var(--c-ink);
  box-shadow: var(--shadow-panel);
}
.page-products .flow-step__num {
  display: inline-block;
  font-family: var(--font-num);
  font-weight: 900;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--c-violet-ink);
  margin-bottom: 12px;
}
.page-products .flow-step__title {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--c-ink);
}
.page-products .flow-step p {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.75;
  color: var(--c-stone);
}
.page-products .tool-flow__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* ---------- FAQ ---------- */
.page-products .tool-faq {
  padding: clamp(28px, 4.6vw, 52px) 0 clamp(10px, 2vw, 20px);
}
.page-products .tool-faq__head {
  max-width: 44rem;
  margin-bottom: 28px;
}
.page-products .tool-faq__head h2 {
  margin: 10px 0 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1.2;
  color: var(--c-paper);
}
.page-products .faq-grid {
  display: grid;
  gap: var(--tools-gap);
}
.page-products .faq-item {
  padding: 22px 24px;
  border-radius: var(--r-md);
  border: 1px solid var(--tools-line);
  background: rgba(11, 37, 69, .55);
}
.page-products .faq-item h3 {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--c-cyan);
}
.page-products .faq-item p {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.78;
  color: var(--c-mist);
}

/* ---------- responsive ---------- */
@media (min-width: 700px) {
  .page-products .tool-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-products .tool-cards .tool-card:nth-child(3n) {
    grid-column: span 2;
  }
  .page-products .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-products .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-products .quota-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .page-products .tools-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
  .page-products .tool-detail__grid .span-5,
  .page-products .tool-detail__grid .span-7,
  .page-products .tool-detail__grid .span-4,
  .page-products .tool-detail__grid .span-6,
  .page-products .tool-detail__grid .span-8 {
    grid-column: auto;
  }
  .page-products .tool-detail__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .page-products .tool-detail__grid > .span-4 { grid-column: span 4; }
  .page-products .tool-detail__grid > .span-5 { grid-column: span 5; }
  .page-products .tool-detail__grid > .span-6 { grid-column: span 6; }
  .page-products .tool-detail__grid > .span-7 { grid-column: span 7; }
  .page-products .tool-detail__grid > .span-8 { grid-column: span 8; }

  .page-products .tool-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-products .tool-cards .tool-card:nth-child(3n) {
    grid-column: span 1;
  }
  .page-products .tool-cards .tool-card:nth-child(1) {
    grid-column: span 2;
  }
  .page-products .flow-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .page-products .faq-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1240px) {
  .page-products .tools-hero__copy h1 {
    font-size: clamp(2.6rem, 4.4vw, 3.6rem);
  }
}

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