/* ============================================================
   AlMohamy v5 — SECTIONS area (comparison, features, how-it-works)
   Class prefix: s5-
   ========================================================== */

/* ---------- Comparison ---------- */
.s5-compare__wrap { padding: 0; overflow: hidden; }
.s5-compare__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.s5-compare__table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; direction: rtl; }
.s5-compare__table th, .s5-compare__table td { padding: 1.1rem 1rem; vertical-align: top; border-bottom: 1px solid var(--v5-line-light); font-size: .95rem; line-height: 1.6; }
.s5-compare__table thead th { position: sticky; top: 0; background: var(--v5-card-light); z-index: 2; text-align: center; border-bottom: 2px solid var(--v5-line-light); }
.s5-compare__dim { position: sticky; inset-inline-start: 0; background: var(--v5-card-light); z-index: 3; text-align: start; min-width: 180px; font-weight: 700; color: var(--v5-text-dark); }
.s5-compare__dim strong { display: block; font-size: 1rem; }
.s5-compare__dim span { display: block; font-size: .82rem; color: var(--v5-text-dark-3); font-weight: 400; margin-top: .2rem; }
.s5-compare__pro { background: rgba(212,168,83,.06); }
.s5-compare__col-name { display: block; font-size: 1.05rem; font-weight: 900; color: var(--v5-text-dark); margin-top: .35rem; }
.s5-compare__col-sub { display: block; font-size: .8rem; color: var(--v5-text-dark-3); margin-top: .15rem; }
.s5-compare__cell { color: var(--v5-text-dark-2); }
.s5-compare__cell--pro { background: rgba(212,168,83,.08); }
.s5-compare__cell .icon { width: 22px; height: 22px; flex: none; margin-inline-end: .5rem; vertical-align: middle; }
.s5-compare__cell > div { display: inline-block; vertical-align: middle; max-width: calc(100% - 34px); }
.s5-compare__cell strong { display: block; font-size: .95rem; color: var(--v5-text-dark); }
.s5-compare__cell p { margin: .2rem 0 0; font-size: .85rem; color: var(--v5-text-dark-3); }
.icon-green { color: var(--v5-emerald-500); }
.icon-red { color: var(--v5-red-500); }
.icon-amber { color: #c9933a; }
.s5-compare__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.s5-compare__cta p { margin: 0; color: var(--v5-text-dark-2); }
.s5-compare__cta strong { color: var(--v5-text-dark); }

/* ---------- Features bento ---------- */
.s5-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 1.25rem; }
.s5-bento__cell--showcase.s5-bento__cell--showcase-lg { grid-column: span 7; grid-row: span 2; display: flex; flex-direction: column; }
.s5-bento__cell--showcase { grid-column: span 5; display: flex; flex-direction: column; }
.s5-bento__cell--std { grid-column: span 4; display: flex; flex-direction: column; }
.s5-bento__cell--wide { grid-column: span 8; display: flex; flex-direction: row; align-items: center; gap: 1.25rem; }
@media (max-width: 1100px) {
  .s5-bento__cell--showcase.s5-bento__cell--showcase-lg,
  .s5-bento__cell--showcase { grid-column: span 12; grid-row: auto; }
  .s5-bento__cell--std,
  .s5-bento__cell--wide { grid-column: span 6; }
  .s5-bento__cell--wide { flex-direction: column; align-items: stretch; }
}
@media (max-width: 720px) {
  .s5-bento__cell--showcase.s5-bento__cell--showcase-lg,
  .s5-bento__cell--showcase,
  .s5-bento__cell--std,
  .s5-bento__cell--wide { grid-column: span 12; }
  .s5-bento__cell--wide { flex-direction: column; align-items: stretch; }
}
.s5-showcase__media { position: relative; overflow: hidden; border-radius: var(--v5-r-lg) var(--v5-r-lg) 0 0; aspect-ratio: 16 / 9; background: var(--v5-paper-2); }
.s5-bento__cell--showcase-lg .s5-showcase__media { flex: 0 0 60%; min-height: 220px; aspect-ratio: auto; }
.s5-showcase__media::before { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(13,21,48,.08); pointer-events: none; border-radius: inherit; z-index: 2; }
.s5-showcase__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(to top, var(--v5-card-light), transparent); pointer-events: none; z-index: 1; }
.s5-showcase__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--v5-ease); }
.s5-bento__cell--showcase-lg .s5-showcase__media img { object-position: top right; }
.s5-bento__cell--showcase:hover .s5-showcase__media img,
.s5-bento__cell--showcase-lg:hover .s5-showcase__media img { transform: scale(1.04); }
.s5-showcase__body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.s5-showcase__top { display: flex; align-items: center; justify-content: space-between; }
.s5-showcase__body h3 { margin: .25rem 0 .15rem; font-size: var(--v5-fs-h3); font-weight: 900; color: var(--v5-text-dark); }
.s5-showcase__body p { margin: 0; color: var(--v5-text-dark-2); font-size: .95rem; line-height: 1.7; }
.s5-std__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; flex: 0 0 auto; }
.s5-bento__cell h3 { margin: .25rem 0 .35rem; font-size: 1.05rem; font-weight: 800; color: var(--v5-text-dark); }
.s5-bento__cell p { margin: 0 0 .6rem; color: var(--v5-text-dark-2); font-size: .9rem; line-height: 1.6; }
.s5-wide__body { flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.s5-bullets { list-style: none; margin: .25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.s5-bullets li { display: flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--v5-text-dark-2); }
.s5-bullets .icon { width: 15px; height: 15px; flex: none; }
/* tech band */
.s5-tech { margin-top: 3.5rem; }
.s5-tech__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 1.75rem; }
@media (max-width: 900px) { .s5-tech__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .s5-tech__grid { grid-template-columns: 1fr; } }
.s5-tech__card { padding: 1.35rem 1.25rem; display: flex; flex-direction: column; gap: .6rem; }
.s5-tech__card h4 { margin: 0; font-size: 1rem; font-weight: 800; color: var(--v5-text-dark); }
.s5-tech__card p { margin: 0; font-size: .88rem; color: var(--v5-text-dark-2); line-height: 1.6; }
.s5-tech__card .v5-icon-tile { width: 44px; height: 44px; border-radius: 12px; }

/* ---------- How it works ---------- */
.s5-how__timeline { position: relative; margin-top: 2.5rem; padding-block: 2rem; }
.s5-how__line { position: absolute; inset-inline: 0; top: 2.1rem; width: 100%; height: 4px; pointer-events: none; z-index: 0; }
@media (max-width: 900px) { .s5-how__line { display: none; } }
.s5-how__line-track { stroke: var(--v5-line-dark-2); stroke-width: 2; }
.s5-how__line-draw { stroke: var(--v5-gold-500); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.4s var(--v5-ease); }
.s5-how__timeline.is-drawn .s5-how__line-draw { stroke-dashoffset: 0; }
.s5-how__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; z-index: 1; }
@media (max-width: 900px) { .s5-how__steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .s5-how__steps { grid-template-columns: 1fr; } }
.s5-how__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center; }
@media (max-width: 600px) {
  .s5-how__step { flex-direction: row; align-items: flex-start; text-align: start; gap: 1rem; }
  .s5-how__steps { position: relative; }
  .s5-how__steps::before {
    content: ""; position: absolute;
    inset-inline-start: 20px; top: 0; bottom: 0;
    width: 2px; background: var(--v5-line-dark-2);
    transform: scaleY(0); transform-origin: top;
    transition: transform 1.4s var(--v5-ease);
  }
  .s5-how__timeline.is-drawn .s5-how__steps::before { transform: scaleY(1); }
}
.s5-how__num { position: absolute; top: -1.6rem; font-size: 2.6rem; font-weight: 900; color: rgba(212,168,83,.16); line-height: 1; pointer-events: none; }
@media (max-width: 600px) { .s5-how__num { position: static; top: auto; font-size: 1.6rem; } }
.s5-how__dot { width: 16px; height: 16px; border-radius: 50%; background: var(--v5-grad-gold); box-shadow: 0 0 0 6px rgba(212,168,83,.18); z-index: 2; flex: none; }
@media (max-width: 600px) { .s5-how__dot { margin-top: .35rem; } }
.s5-how__card { width: 100%; padding: 1.25rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; align-items: center; text-align: center; }
@media (max-width: 600px) { .s5-how__card { align-items: flex-start; text-align: start; } }
.s5-how__card h3 { margin: .25rem 0 .15rem; font-size: 1rem; font-weight: 800; color: var(--v5-text); }
.s5-how__card p { margin: 0; font-size: .88rem; color: var(--v5-text-2); line-height: 1.6; }
.s5-how__links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; justify-content: center; }
@media (max-width: 600px) { .s5-how__links { justify-content: flex-start; } }
.s5-how__after { margin-top: 2rem; text-align: center; }
.s5-how__after p { color: var(--v5-text-2); font-size: 1rem; margin: 0; }
.s5-how__cta { margin-top: 2rem; display: flex; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .s5-how__line-draw { stroke-dashoffset: 0; transition: none; } .s5-how__steps::before { transform: scaleY(1) !important; transition: none; } }

/* icon-tile variants defined locally (not in v5-core) */
.v5-icon-tile--amber { background: linear-gradient(145deg, rgba(201,147,58,.22), rgba(201,147,58,.06)); border-color: rgba(201,147,58,.3); color: #c9933a; }
.v5-section--dark .v5-icon-tile--amber { color: #e6c27a; }
.v5-icon-tile--navy { background: linear-gradient(145deg, rgba(22,38,90,.35), rgba(22,38,90,.12)); border-color: rgba(100,130,200,.3); color: #3c4663; }
.v5-section--dark .v5-icon-tile--navy { color: var(--v5-blue-400); }
.v5-icon-tile--red { background: linear-gradient(145deg, rgba(240,82,82,.22), rgba(240,82,82,.06)); border-color: rgba(240,82,82,.3); color: #c0392b; }
.v5-section--dark .v5-icon-tile--red { color: var(--v5-red-500); }