/* ==========================================================================
   TechAbbot – why global enterprises choose TechAbbot
   Markup: partials/why.html (generated by tools/build-why.js)
   No script.

   White section in two columns:
     left   heading, description and a quiet panel of review platforms
     right  the six differentiators as a ruled, numbered editorial list

     below 640px     everything in one column
     640px and up    differentiators in two columns
     1100px and up   lead (about 39%) beside the differentiators (about 61%)
   ========================================================================== */

.why {
  padding-block: clamp(52px, 6.5vw, 96px);
  background: var(--c-bg);
}

.why__inner {
  display: grid;
  gap: clamp(32px, 4vw, 64px);
}

/* Lead (left) ------------------------------------------------------------- */

.why__label::after { content: none; }

.why__title {
  margin: 14px 0 0;
  font-size: clamp(1.75rem, 1.25rem + 2.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.why__accent { color: var(--c-blue); }

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .why__accent {
    background: var(--gradient-logo);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    -webkit-text-fill-color: transparent;
  }
}

.why__intro {
  max-width: 36em;
  margin: 18px 0 0;
  color: var(--c-text-muted);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
}

/* Review platforms: a quiet tinted panel. */

.why__proof {
  margin-top: clamp(24px, 3vw, 36px);
  padding: 18px;
  border: 1px solid var(--c-border);
  border-radius: 18px;
  background: linear-gradient(90deg, var(--c-green), #0871A7) top / 100% 3px no-repeat, var(--c-bg-alt);
}

.why__proof-title {
  margin: 0;
  color: var(--c-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.why__platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.why-platform { display: flex; min-width: 0; }

.why-platform__body {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  min-width: 0;
  min-height: 86px;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  background: var(--c-bg);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.why-platform__mark {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 32px;
}

.why-platform__mark img { display: block; }

/* No authentic logo file: the platform's name in plain type. */
.why-platform__mark--text {
  justify-content: flex-start;
  min-width: 0;
  color: var(--c-text);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.why-platform__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.why-platform__name {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
}

/* The name is already the mark for a text-only platform. */
.why-platform__mark--text + .why-platform__text .why-platform__name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.why-platform__label,
.why-platform__rating {
  color: var(--c-text-muted);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.why-platform__rating strong { color: var(--c-text); }

/* Display-only stars or status pill, on their own line under the name. */
.why-platform__stars {
  --star-size: 16px;
  flex: none;
  margin: 2px 0 0;
}

.why-platform__stars,
.why-platform__badge { order: 3; }

.why-platform__body::after {
  content: "";
  order: 2;
  flex: 1 1 100%;
  height: 0;
}

.why-platform__badge {
  min-height: 0;
  padding: 1px 10px;
  font-size: 0.75rem;
}

/* Differentiators (right) ----------------------------------------------------- */

.why__reasons {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--c-border);
  list-style: none;
  counter-reset: none;
}

.why-reason {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  align-content: start;
  gap: 6px 16px;
  padding: clamp(20px, 2.2vw, 28px) clamp(12px, 1.6vw, 22px);
  border-bottom: 1px solid var(--c-border);
  transition: background-color 220ms ease;
}

/* Gradient rule that draws along the top of the hovered item. */
.why-reason::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--c-green), #0871A7);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms ease;
}

.why-reason:hover { background: var(--c-bg-alt); }
.why-reason:hover::before { transform: scaleX(1); }

/* Large outlined number, filled with the gradient on hover. */
.why-reason__number {
  grid-row: 1;
  grid-column: 1;
  color: transparent;
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  -webkit-text-stroke: 1.5px #9FB4C2;
  user-select: none;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .why-reason:hover .why-reason__number {
    background: var(--gradient-logo);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke-color: transparent;
  }
}

.why-reason__icon {
  grid-row: 1;
  grid-column: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #EEF6F8;
  color: var(--c-blue);
  transition: background-color 220ms ease, color 220ms ease;
}

.why-reason:hover .why-reason__icon {
  background: linear-gradient(135deg, var(--c-green), #0871A7);
  color: #fff;
}

.why-reason__icon svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-reason__title {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.why-reason__text {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--c-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Layout ------------------------------------------------------------------ */

@media (min-width: 640px) {
  .why__reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .why-reason:nth-child(even) { border-left: 1px solid var(--c-border); }
}

@media (min-width: 640px) and (max-width: 1099.98px) {
  .why__platforms { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .why__inner {
    grid-template-columns: minmax(0, 39fr) minmax(0, 61fr);
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .why-reason,
  .why-reason::before,
  .why-reason__icon,
  .why-platform__body { transition: none; }
}

/* Optional button under the lead column. */
.why__cta { margin: clamp(22px, 2.6vw, 32px) 0 0; }
