/* ==========================================================================
   Solution Detail Pages (solution-detail.css)
   Clean, modern, high-conversion UI matching the exact design specification
   ========================================================================== */

:root {
  --green-soft: #86d394;
}

.sol-detail {
  --ink: #111814;
  --ink-2: #39443d;
  --ink-3: #66706a;
  --paper: #fff;
  --stone: #f2f2ee;
  --stone-2: #e6e7e1;
  --rule: #d9dcd5;
  --night: #0f1712;
  --night-2: #18231c;
  --forest: #173d27;
  --green: #45a55a;
  --green-600: #287a3b;
  --green-700: #1f6530;
  --green-soft: #86d394;
  --green-tint: #e8f3ea;
  --section: clamp(72px, 8vw, 120px);
}

.wrap {
  max-width: var(--container, 1792px);
  margin: 0 auto;
  padding-inline: var(--gutter, clamp(20px, 3.4vw, 64px));
}

.ico-arrow {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform .25s var(--ease, cubic-bezier(.2, .7, .2, 1));
}
[dir="rtl"] .ico-arrow {
  transform: scaleX(-1);
}

/* Typography & Section Headers */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
[lang="ar"] .eyebrow {
  font-size: 14px;
}

.h2 {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: clamp(2.25rem, 3.9vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--ink);
}
.h2 em, .h1 em {
  font-style: normal;
  color: var(--green-600);
}
[lang="ar"] .h2 {
  line-height: 1.4;
  font-size: clamp(2rem, 3.3vw, 3.1rem);
}

.head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 20px clamp(40px, 5vw, 96px);
  align-items: end;
  margin-bottom: clamp(40px, 4.5vw, 64px);
}
.head__side p {
  margin: 0 0 16px;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
}
[lang="ar"] .head__side p {
  line-height: 1.9;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-head);
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--green-600);
  color: var(--ink);
}
.link:hover {
  color: var(--green-700);
}
.link:hover .ico-arrow {
  transform: translateX(4px);
}
[dir="rtl"] .link:hover .ico-arrow {
  transform: scaleX(-1) translateX(4px);
}

/* Section bands */
.band {
  padding: var(--section) 0;
}
.band--stone {
  background: var(--stone);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.sol-detail .hero {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: #fff;
  min-height: clamp(540px, calc(88vh - var(--header-h, 92px)), 760px);
  display: flex;
  align-items: center;
  padding: clamp(60px, 7vw, 108px) 0;
}
.sol-detail .hero .wrap {
  width: 100%;
}
.sol-detail .hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 5vw, 96px);
  align-items: center;
}
.sol-detail .hero .eyebrow {
  color: rgba(255, 255, 255, .85);
}
.sol-detail .hero .eyebrow::before {
  background: var(--green-soft);
}
.sol-detail .h1 {
  margin: 0 0 24px;
  font-family: var(--f-head);
  font-weight: 650;
  font-size: clamp(2.8rem, 5.6vw, 5.4rem);
  line-height: .98;
  letter-spacing: -0.035em;
  color: #fff;
}
.sol-detail .h1 em {
  font-style: normal;
  color: var(--green-soft);
}
[lang="ar"] .sol-detail .h1 {
  line-height: 1.3;
  font-size: clamp(2.5rem, 4.6vw, 4.4rem);
}
.sol-detail .hero__lede {
  margin: 0;
  max-width: 30em;
  font-size: clamp(1.0625rem, 1.25vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
}
[lang="ar"] .sol-detail .hero__lede {
  line-height: 1.9;
}
.sol-detail .hero__media {
  position: relative;
  padding-bottom: 18%;
}
.shot {
  margin: 0;
}
.shot__img {
  overflow: hidden;
  border-radius: var(--radius, 3px);
}
.shot img {
  width: 100%;
  height: auto;
  transition: transform 1s var(--ease, cubic-bezier(.2, .7, .2, 1));
}
.shot:hover img {
  transform: scale(1.03);
}
.shot figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, .7);
}
.shot--main {
  width: 86%;
  margin-inline-start: auto;
}
.shot--main figcaption {
  text-align: end;
}
.shot--main img {
  aspect-ratio: 1149 / 653;
  object-fit: cover;
}
.shot--inset {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 46%;
}
.shot--inset .shot__img {
  border: 6px solid var(--night);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
}
.shot--inset img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ── Overview ─────────────────────────────────────────────────────────────── */
.ov__grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(260px, 4fr);
  gap: clamp(40px, 5vw, 96px);
  align-items: start;
}
.ov .h2 {
  margin-bottom: 28px;
}
.ov p:not(.eyebrow) {
  margin: 0 0 18px;
  max-width: 40em;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-2);
}
.ov p.lead {
  font-size: clamp(1.125rem, 1.3vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink);
}
[lang="ar"] .ov p:not(.eyebrow) {
  line-height: 1.95;
}
.quote {
  margin: 32px 0 0;
  padding: 4px 0 4px 22px;
  border-inline-start: 3px solid var(--green-600);
  font-family: var(--f-head);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.45vw, 1.4rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 36em;
}
[dir="rtl"] .quote {
  padding: 4px 22px 4px 0;
}
[lang="ar"] .quote {
  line-height: 1.85;
}

.aside {
  position: sticky;
  top: calc(var(--header-h, 92px) + 24px);
  display: grid;
  gap: 16px;
}
.aside__list {
  border: 1px solid var(--rule);
  border-radius: var(--radius, 3px);
  padding: 18px 18px 8px;
  background: #fff;
}
.aside__list h2 {
  margin: 0 0 8px;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.aside__list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.aside__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  font-size: 15px;
  color: var(--ink-2);
  transition: color .2s, padding .25s var(--ease, cubic-bezier(.2, .7, .2, 1));
}
.aside__list a .ico-arrow {
  width: 14px;
  height: 14px;
  color: var(--ink-3);
}
.aside__list a:hover {
  color: var(--ink);
  padding-inline-start: 6px;
}
.aside__list a:hover .ico-arrow {
  transform: translateX(3px);
  color: var(--ink);
}
[dir="rtl"] .aside__list a:hover .ico-arrow {
  transform: scaleX(-1) translateX(3px);
}
.aside__list a[aria-current] {
  color: var(--green-700);
  font-weight: 600;
}
.aside__list a[aria-current] .ico-arrow {
  color: var(--green-600);
}

.talk {
  padding: 22px;
  background: var(--night-2);
  color: #fff;
  border-radius: var(--radius, 3px);
}
.talk h2 {
  margin: 0 0 8px;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 1.15rem;
  color: #fff;
}
.ov .talk p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .78);
}
[lang="ar"] .ov .talk p {
  line-height: 1.85;
}
.talk a.ln {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
}
.talk a.ln:hover {
  color: var(--green-soft);
}
.talk a.ln svg {
  width: 16px;
  height: 16px;
  color: var(--green-soft);
}
.talk .btn {
  width: 100%;
  margin-top: 14px;
}

/* ── Use cases ────────────────────────────────────────────────────────────── */
.uc__label {
  margin-bottom: 28px;
}
.uc {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.uc a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: var(--radius, 3px);
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow .3s;
}
.uc__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.uc__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease, cubic-bezier(.2, .7, .2, 1));
}
.uc__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 24px;
}
.uc h3 {
  margin: 0 0 8px;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--ink);
}
.uc p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}
.uc p.more {
  color: var(--ink-3);
}
[lang="ar"] .uc p {
  line-height: 1.85;
}
.uc__go {
  margin-top: auto;
  padding-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 15px;
  border-bottom: 2px solid var(--rule);
  padding-bottom: 3px;
  color: var(--ink);
  transition: border-color .2s, color .2s;
}
@media (hover: hover) {
  .uc a:hover {
    box-shadow: 0 18px 36px -22px rgba(17, 24, 20, .45);
  }
  .uc a:hover .uc__img img {
    transform: scale(1.05);
  }
  .uc a:hover .uc__go {
    color: var(--green-700);
    border-color: var(--green-600);
  }
  .uc a:hover .uc__go .ico-arrow {
    transform: translateX(4px);
  }
  [dir="rtl"] .uc a:hover .uc__go .ico-arrow {
    transform: scaleX(-1) translateX(4px);
  }
}

/* ── What you get ─────────────────────────────────────────────────────────── */
.get {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 32px;
  margin: 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}
.get li {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--ink);
}
.get svg {
  display: block;
  width: 26px;
  height: 26px;
  margin-bottom: 16px;
  color: var(--green-600);
}

/* ── Recommended systems ──────────────────────────────────────────────────── */
.sys {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--rule);
  background: #fff;
  max-width: 100%;
}
.sys--count-1,
.sys:has(> .sys__card:only-child) {
  grid-template-columns: 1fr;
  max-width: 460px;
}
.sys--count-2,
.sys:has(> .sys__card:first-child:nth-last-child(2)) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 920px;
}
.sys--count-3,
.sys:has(> .sys__card:first-child:nth-last-child(3)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 100%;
}
.sys__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 26px 26px;
  min-height: 470px;
  text-decoration: none;
  color: inherit;
  transition: background-color .3s;
}
.sys__card + .sys__card {
  border-inline-start: 1px solid var(--rule);
}
.sys__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.sys__name {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 650;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--ink);
}
.sys__type {
  margin: 6px 0 0;
  max-width: 13em;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-3);
}
.sys__specs {
  margin: 0;
  font-size: 13px;
  text-align: end;
  line-height: 1.75;
  color: var(--ink-2);
}
.sys__specs bdi {
  white-space: nowrap;
}
.sys__specs b {
  font-family: var(--f-head);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}
.sys__media {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 20px 6%;
}
.sys__media img {
  width: 100%;
  max-width: 340px;
  height: auto;
  transition: transform .5s var(--ease, cubic-bezier(.2, .7, .2, 1));
}
.sys__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sys__foot span:first-child {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.sys__go {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--green-600);
  color: #fff;
  border-radius: 2px;
  transition: background-color .25s;
}
.sys__go .ico-arrow {
  width: 18px;
  height: 18px;
}
@media (hover: hover) {
  .sys__card:hover {
    background: #fbfbf9;
  }
  .sys__card:hover .sys__media img {
    transform: translateY(-8px) scale(1.03);
  }
  .sys__card:hover .sys__go {
    background: var(--ink);
  }
  .sys__card:hover .sys__go .ico-arrow {
    transform: translateX(3px);
  }
  [dir="rtl"] .sys__card:hover .sys__go .ico-arrow {
    transform: scaleX(-1) translateX(3px);
  }
}

/* ── Product features ─────────────────────────────────────────────────────── */
.feat__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 5vw, 96px);
  align-items: start;
}
.feat__visual {
  position: sticky;
  top: calc(var(--header-h, 92px) + 24px);
}
.feat__stage {
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  background: var(--stone);
  border-radius: var(--radius, 3px);
}
.feat__stage img {
  width: 82%;
  height: auto;
}
.feat__label {
  margin: 20px 0 10px;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 8px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  background: #fff;
}
.feat .h2 {
  max-width: 15em;
}
.feat__intro {
  margin: 28px 0 36px;
  max-width: 42em;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-2);
}
[lang="ar"] .feat__intro {
  line-height: 1.95;
}
.spec {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.spec li {
  padding: 18px 0 20px;
  border-top: 1px solid var(--rule);
  transition: border-top-color .25s;
}
.spec li:hover {
  border-top-color: var(--green-600);
}
.spec strong {
  display: block;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--ink);
}
.spec span {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-3);
}
[lang="ar"] .spec span {
  line-height: 1.8;
}
.uses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
  margin-top: 28px;
  padding: 24px;
  background: var(--stone);
  border-radius: var(--radius, 3px);
}
.uses h3 {
  margin: 0 0 4px;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.uses p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ink-3);
}
.uses .chips li {
  border-color: transparent;
}
.feat__note {
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ── How it connects ────────────────────────────────────────────────────────
   Kept in original .sol-flow layout (styled in solutions.css)
   ────────────────────────────────────────────────────────────────────────── */

/* ── Tables (Comparison & General Specs) ─────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 15.5px;
}
.tbl th, .tbl td {
  padding: 16px 20px;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
  transition: background-color .25s ease;
}
.tbl thead th {
  background: var(--night);
  color: #fff;
  font-family: var(--f-head);
  font-weight: 600;
  vertical-align: bottom;
  transition: background-color .25s ease;
}
.tbl tbody th {
  width: 20%;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-3);
}
.tbl td {
  line-height: 1.5;
  color: var(--ink-2);
}
.tbl tbody tr:hover th,
.tbl tbody tr:hover td {
  background: var(--green-tint);
}
.tbl--cmp thead th {
  background: #fff;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}
.tbl--cmp thead th:hover {
  background: var(--green-tint);
}
.tbl--cmp tbody tr:hover th,
.tbl--cmp tbody tr:hover td {
  background: var(--green-tint);
}
.cmp__head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cmp__head img {
  width: 72px;
  height: auto;
  flex: none;
  transition: transform .3s var(--ease);
}
.tbl--cmp thead th:hover .cmp__head img {
  transform: translateY(-3px) scale(1.04);
}
.cmp__head strong {
  display: block;
  font-family: var(--f-head);
  font-weight: 650;
  font-size: 1.25rem;
  color: var(--ink);
}
.cmp__head span {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--stone);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  transition: background-color .2s, color .2s;
}
.tbl--cmp thead th:hover .cmp__head span {
  background: var(--green-tint);
  color: var(--green-700);
}
.cmp__head-label {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-3);
}

/* ── Other solutions ──────────────────────────────────────────────────────── */
.more__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.more__list a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.more__img {
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4 / 3;
  background: var(--stone);
}
.more__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease, cubic-bezier(.2, .7, .2, 1));
}
.more__list strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.more__list span {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--ink-3);
}
.more__list .ico-arrow {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s, transform .25s var(--ease, cubic-bezier(.2, .7, .2, 1));
}
[dir="rtl"] .more__list .ico-arrow {
  transform: scaleX(-1) translateX(-6px);
}
@media (hover: hover) {
  .more__list a:hover .more__img img {
    transform: scale(1.06);
  }
  .more__list a:hover strong {
    color: var(--green-700);
  }
  .more__list a:hover .ico-arrow {
    opacity: 1;
    transform: none;
  }
  [dir="rtl"] .more__list a:hover .ico-arrow {
    transform: scaleX(-1);
  }
}

/* ── Responsive Media Queries ─────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .more__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .get {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .sol-detail .hero {
    min-height: auto;
  }
  .hero__grid, .head, .ov__grid, .feat__grid {
    grid-template-columns: 1fr;
  }
  .aside, .feat__visual {
    position: static;
  }
  .uc {
    grid-template-columns: 1fr;
  }
  .uc li {
    min-width: 0;
  }
  .sys,
  .sys--count-1,
  .sys--count-2,
  .sys--count-3 {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .sys__card {
    min-height: 0;
  }
  .sys__card + .sys__card {
    border-inline-start: 0;
    border-top: 1px solid var(--rule);
  }
  .sys__media img {
    max-width: 260px;
  }
  .tbl--cmp {
    min-width: 760px;
  }
  .tbl--cmp th:first-child {
    position: sticky;
    inset-inline-start: 0;
    z-index: 1;
    background: #fff;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding-inline: 16px;
  }
  .shot--main {
    width: 100%;
  }
  .hero__media {
    padding-bottom: 0;
  }
  .shot--inset {
    position: static;
    width: 70%;
    margin-top: -40px;
    margin-inline-start: 16px;
  }
  .shot--main figcaption {
    text-align: start;
  }
  .get {
    grid-template-columns: 1fr 1fr;
  }
  .spec, .uses {
    grid-template-columns: 1fr;
  }
  .more__list {
    grid-template-columns: 1fr 1fr;
  }
  .tbl th, .tbl td {
    padding: 13px 12px;
    font-size: 14.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
  }
}
