/* The feature pages (content/solutions.json, solution_parts.py). They borrow the services page's hero and arrivals,
   and the home page's strip, questions and closing band (styles.css); what is theirs is below. */

/* --- hero: the services hero, with a skyline of its own and the scroll cue --- */
.sol-hero .scroll-cue { justify-content: center; margin-top: 38px; }
@media (prefers-reduced-motion: no-preference) {
  .sol-cue { animation: sv-up 1s 1.3s var(--ease) both; }
  .sol-cue svg { animation: sol-drop 2.4s 2.4s ease-in-out infinite; }
}
@keyframes sol-drop { 0%, 100% { translate: 0 0; } 50% { translate: 0 6px; } }

/* --- section heads --- */
.sol-head .lead { max-width: 60ch; margin-top: 22px; }
.sol-head--wide h2 { max-width: 24em; }

/* --- what such software should do: six points in hairline rows, each with its icon --- */
.sol-ic { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.sol-check { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 56px; margin-top: 48px; border-top: 1px solid var(--line); }
.sol-check > div { position: relative; padding: 26px 0; }
.sol-check > div::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--line); transform-origin: left; transition: transform 1.4s var(--ease) .15s; }
[dir="rtl"] .sol-check > div::after { transform-origin: right; }
.sol-check b { display: flex; align-items: center; gap: 14px; font-weight: 500; font-size: 18px; color: var(--violet-ink); }
.sol-check .sol-ic { color: var(--gold-ink); transition: translate .5s var(--ease); }
.sol-check > div:hover .sol-ic { translate: 0 -3px; }
.sol-check span { display: block; margin-top: 6px; padding-inline-start: 34px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* --- the three features, each beside the screen that shows it --- */
.sol-stories { padding: 12px 0; background: var(--ivory); }
.sol-story { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(40px, 6vw, 88px); align-items: center; padding: clamp(56px, 7vw, 92px) 0; border-bottom: 1px solid var(--line-soft); }
.sol-story:last-child { border-bottom: 0; }
.sol-story:nth-child(even) .sol-story__visual { order: -1; }
.sol-story h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3vw, 42px); line-height: 1.1; letter-spacing: .01em; text-transform: uppercase; color: var(--violet-ink); }
:lang(ar) .sol-story h2 { font-weight: 300; line-height: 1.35; }
.sol-story .dia { margin-top: 22px; }
.sol-story__copy p { max-width: 48ch; margin-top: 22px; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.sol-points { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.sol-points li { display: flex; gap: 16px; align-items: baseline; font-size: 16px; line-height: 1.5; color: var(--ink); }
.sol-points li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--gold-ink); transform: rotate(45deg) translateY(-2px); }
.sol-story__visual { position: relative; padding-bottom: 54px; }
.sol-chip { position: absolute; bottom: 0; inset-inline-end: -18px; z-index: 2; display: flex; gap: 12px; align-items: center; padding: 12px 18px; border-radius: 14px; background: var(--violet-ink); color: var(--ivory); font-size: 14.5px; box-shadow: var(--shadow-dark); translate: 0 var(--py, 0px); }
.sol-story:nth-child(even) .sol-chip { inset-inline-end: auto; inset-inline-start: -18px; }
.sol-chip i { flex: none; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
.sol-chip small { display: block; font-size: 12.5px; color: var(--text-light-2); }

/* the product cards */
.sol-card { overflow: hidden; border-radius: 18px; background: #fff; color: var(--ink); font-size: 14.5px; line-height: 1.45; box-shadow: var(--shadow); transition: transform .6s var(--ease); }
.sol-story__visual:hover .sol-card { transform: translateY(-4px); }
.sol-card__pad { padding: 24px 26px; }
.sol-card__img { position: relative; }
.sol-card__img img { display: block; width: 100%; height: 220px; object-fit: cover; }
.sol-card__img--tall img { height: 240px; }
.sol-card__tag { position: absolute; top: 14px; inset-inline-start: 14px; padding: 3px 12px; border-radius: 999px; background: #fff; font-size: 12.5px; }
.sol-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sol-card__head b { font-weight: 500; font-size: 17px; }
.sol-card__head small, .sol-card__price { font-size: 13.5px; color: var(--muted); }
.sol-card__meta { margin: 4px 0 12px; font-size: 14px; color: var(--muted); }
.sol-card__eyebrow { margin: 0; }
.sol-card__big { display: block; margin: 2px 0 12px; font-weight: 500; font-size: 17.5px; }
.sol-kv { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.sol-kv span:first-child { color: var(--muted); }
.sol-kv span:last-child { text-align: end; }
.sol-kv--state { align-items: center; }
.sol-switch { display: inline-flex; align-items: center; gap: 10px; color: var(--ink) !important; }
.sol-switch i { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--violet); }
.sol-switch i::after { content: ""; position: absolute; top: 3px; inset-inline-end: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.sol-live { color: var(--gold-deep); }
.sol-pill { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--lavender-2); color: var(--violet); font-size: 12.5px; white-space: nowrap; }
.sol-pill--gold { background: #F1E6CB; color: #6A521F; }
.sol-pill--green { background: #DCEFD9; color: #1E6B3A; }
.sol-pill--red { background: #F9DAD5; color: #8E2A1B; }
.sol-pill--violet { background: var(--violet); color: #fff; }
.sol-alert { margin-top: 4px; padding: 13px 16px; border-radius: 10px; background: #FBEFD9; color: #6B4300; }
.sol-alert b { display: block; font-weight: 600; }
.sol-alert--soft { margin-top: 8px; }
.sol-field { margin: 16px 0 6px; font-size: 13.5px; color: var(--muted); }
.sol-input { display: block; height: 44px; border: 1px solid var(--lavender); border-radius: 8px; }
.sol-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.sol-btn { display: inline-block; padding: 9px 16px; border: 1px solid var(--lavender); border-radius: 7px; color: var(--violet); font-size: 14px; font-weight: 500; }
.sol-btn--primary { border-color: var(--violet); background: var(--violet); color: #fff; }
.sol-btn--ink { margin-top: 14px; border-color: var(--ink); background: var(--ink); color: #fff; }
.sol-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line-soft); }
.sol-stats div { padding: 16px 18px; border-inline-end: 1px solid var(--line-soft); }
.sol-stats div:last-child { border-inline-end: 0; }
.sol-stats b { display: block; font-size: 26px; font-weight: 400; color: var(--violet-ink); }
.sol-stats span { font-size: 13px; color: var(--muted); }
.sol-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px; background: var(--cream); font-size: 14px; }
.sol-bar b { font-weight: 500; }
.sol-bar small { color: var(--muted); }
.sol-li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 22px; border-top: 1px solid var(--line-soft); }
.sol-li b { font-weight: 500; }
.sol-li small { display: block; font-size: 13px; color: var(--muted); }
.sol-total { display: flex; justify-content: space-between; padding: 16px 0 4px; border-top: 1px solid var(--ink); font-size: 17px; }
.sol-total b { font-weight: 500; }
.sol-cal { display: grid; gap: 8px; margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--ivory); }
.sol-cal__row { display: grid; grid-template-columns: 110px repeat(14, minmax(0, 1fr)); gap: 4px; align-items: center; font-size: 13px; }
.sol-cal__row i { height: 30px; border-radius: 4px; background: #fff; }
.sol-cal__days { font-size: 12px; text-align: center; color: var(--muted); }
.sol-cal i.sol-cal--paid, .sol-legend .sol-cal--paid { background: var(--violet); }
.sol-cal i.sol-cal--confirmed, .sol-legend .sol-cal--confirmed { background: var(--lavender); }
.sol-cal i.sol-cal--owner, .sol-legend .sol-cal--owner { background: var(--ivory-2) repeating-linear-gradient(135deg, transparent 0 5px, rgb(48 40 79 / .16) 5px 6px); }
.sol-cal i.sol-cal--maint, .sol-legend .sol-cal--maint { background: #F1E6CB; }
.sol-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.sol-legend i { display: inline-block; width: 12px; height: 12px; margin-inline-end: 6px; border-radius: 3px; vertical-align: -1px; }
.sol-terms { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 13.5px; color: var(--ink-2); }
.sol-terms i { flex: none; width: 16px; height: 16px; border: 1px solid var(--violet); border-radius: 3px; }
.sol-browser { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--ivory-2); }
.sol-browser i { width: 9px; height: 9px; border-radius: 50%; background: var(--lavender); }
.sol-browser span { flex: 1; padding: 4px 12px; border-radius: 6px; background: #fff; font-size: 12.5px; color: var(--muted); text-align: start; }
.sol-site__nav { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.sol-site__nav b { font-weight: 600; letter-spacing: .06em; }
.sol-site__nav span { color: var(--muted); }
.sol-thumb { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 10px; background: var(--cream); }
.sol-thumb img { width: 72px; height: 56px; object-fit: cover; border-radius: 6px; }
.sol-thumb b { display: block; font-weight: 500; }
.sol-thumb small { color: var(--muted); }
.sol-quote { margin: 16px 0; font-size: 16px; color: var(--ink); }
.sol-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.sol-dates span { padding: 10px 14px; border: 1px solid var(--lavender); border-radius: 8px; }
.sol-dates small { display: block; font-size: 12.5px; color: var(--muted); }

/* --- the feature list: the home page's drawn tiles, on the night band --- */
.sol-ops { position: relative; isolation: isolate; overflow: hidden; padding: clamp(72px, 9vw, 112px) 0; background: radial-gradient(ellipse at 50% 100%, rgb(210 181 116 / .16), rgb(67 32 106 / .28) 40%, transparent 68%), var(--violet-deep); color: var(--ivory); text-align: center; }
.sol-ops::before { content: ""; position: absolute; z-index: -1; inset: 0; background: url('/assets/scenery/firmament.svg') center / cover no-repeat; opacity: .7; pointer-events: none; }
.sol-ops h2 { font-weight: 300; line-height: 1; color: var(--ivory); }
.sol-ops h2 .script { font-size: clamp(36px, 4.4vw, 60px); text-transform: none; letter-spacing: 0; }
.sol-ops h2 .caps { display: block; margin-top: 6px; font-size: clamp(24px, 2.8vw, 40px); letter-spacing: .08em; }
:lang(ar) .sol-ops h2 { line-height: 1.35; }
:lang(ar) .sol-ops h2 .caps { margin-top: 14px; letter-spacing: 0; }
.sol-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 60px; text-align: start; }
.sol-tile { display: flex; flex-direction: column; gap: 22px; min-height: 296px; padding: 20px; border-radius: 18px; box-shadow: 0 30px 60px -28px rgb(0 0 0 / .6); transition: transform .6s var(--ease), box-shadow .6s, opacity .8s var(--ease), translate .8s var(--ease), scale .8s var(--ease); }
.sol-tile:hover { transform: translateY(-8px); box-shadow: 0 44px 70px -30px rgb(0 0 0 / .75); }
.sol-tile > svg { display: block; flex: none; width: 100%; height: 96px; fill: none; }
.sol-tile > div { margin-top: auto; }
.sol-tile h3 { font-weight: 300; font-size: 17px; line-height: 1.15; letter-spacing: .01em; text-transform: uppercase; color: inherit; }
:lang(ar) .sol-tile h3 { font-weight: 400; letter-spacing: 0; }
.sol-tile .dia { width: 7px; height: 7px; margin: 10px 0 0 2px; }
.sol-tile p { margin-top: 9px; font-size: 13.5px; line-height: 1.5; }
.sol-tile a { text-underline-offset: 3px; }
.sol-tile--violet { background: var(--violet); color: var(--ivory); }
.sol-tile--violet .dia { background: var(--gold); }
.sol-tile--violet p { color: var(--text-light); }
.sol-tile--violet a { color: var(--gold); }
.sol-tile--lavender { background: var(--lavender); color: var(--ink); }
.sol-tile--lavender .dia { background: var(--violet); }
.sol-tile--lavender p { color: #3F3854; }
.sol-tile--lavender a { color: var(--violet); }
.sol-tile--ivory { background: var(--ivory); color: var(--ink); }
.sol-tile--ivory .dia { background: var(--gold-ink); }
.sol-tile--ivory p { color: var(--ink-2); }
.sol-tile--ivory a { color: var(--violet); }
.sol-credit { margin-top: 36px; font-size: 14.5px; color: var(--text-light-2); }
.sol-credit a { color: var(--gold); text-underline-offset: 3px; }

/* --- the UAE rules (or the way we work): lines drawn under each, beside a drawn arch --- */
.sol-rules { position: relative; overflow: hidden; padding: clamp(72px, 9vw, 112px) 0; background: var(--violet); color: var(--ivory); }
.sol-rules h2 { color: var(--ivory); }
.sol-rules .lead { color: var(--text-light); }
.sol-rules .dia { background: var(--gold); }
.sol-rules__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.sol-rules__arch { width: 210px; margin-top: 44px; }
.sol-rules__arch .arches { position: static; display: block; width: 100%; height: auto; opacity: .55; translate: 0 var(--py, 0px); }
.sol-rules__arch .arches path { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s var(--ease); }
.sol-rules__arch .arches path:nth-child(2) { transition-delay: .2s; }
.sol-rules__arch .arches path:nth-child(3) { transition-delay: .4s; }
.sv-anim .sol-rules__arch[data-sv="visual"]:not(.is-in) .arches path { stroke-dashoffset: 1; }
.sol-lines { margin: 0; padding: 0; list-style: none; }
.sol-lines li { position: relative; display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); gap: 28px; padding: 24px 0; }
.sol-lines li::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--line-light); transform-origin: left; transition: transform 1.4s var(--ease) .1s; }
[dir="rtl"] .sol-lines li::after { transform-origin: right; }
.sol-lines b { font-weight: 500; font-size: 17px; color: var(--ivory); }
.sol-lines span { font-size: 16px; line-height: 1.6; color: var(--text-light); }

/* --- who uses it --- */
.sol-who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); margin-top: 48px; }
.sol-who > div { position: relative; padding-top: 30px; }
.sol-who > div::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 1px; background: #C9BBA6; transform-origin: left; transition: transform 1.4s var(--ease); }
[dir="rtl"] .sol-who > div::before { transform-origin: right; }
.sol-who .sol-ic { width: 34px; height: 34px; color: var(--violet); }
.sol-who h3 { margin-top: 18px; font-weight: 300; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); }
:lang(ar) .sol-who h3 { letter-spacing: 0; }
.sol-who p { margin-top: 10px; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }

/* --- arrivals: held back only once main.js has switched them on (sv-anim), never under "reduce motion" --- */
[data-sv="story"] .w__i { transition: translate 1s var(--ease); }
[data-sv="story"] .w:nth-child(2) .w__i { transition-delay: .06s; } [data-sv="story"] .w:nth-child(3) .w__i { transition-delay: .12s; }
[data-sv="story"] .w:nth-child(4) .w__i { transition-delay: .18s; } [data-sv="story"] .w:nth-child(n+5) .w__i { transition-delay: .24s; }
[data-sv="story"] .dia { transition: scale .7s var(--ease) .55s; }
[data-sv="story"] .sol-story__copy p { transition: opacity .9s var(--ease) .45s, translate .9s var(--ease) .45s; }
[data-sv="story"] .sol-points li { transition: opacity .8s var(--ease), translate .8s var(--ease); }
[data-sv="story"] .sol-points li:nth-child(1) { transition-delay: .65s; } [data-sv="story"] .sol-points li:nth-child(2) { transition-delay: .77s; }
[data-sv="story"] .sol-points li:nth-child(3) { transition-delay: .89s; } [data-sv="story"] .sol-points li:nth-child(4) { transition-delay: 1.01s; }
[data-sv="story"] .sol-story__visual { transition: opacity .9s var(--ease) .25s, translate .9s var(--ease) .25s, rotate .9s var(--ease) .25s; }
[data-sv="story"] .sol-chip { transition: opacity .7s var(--ease) 1s, scale .7s var(--ease) 1s; }
.sv-anim [data-sv="story"]:not(.is-in) .w__i { translate: 0 140%; }
.sv-anim [data-sv="story"]:not(.is-in) .dia { scale: 0; }
.sv-anim [data-sv="story"]:not(.is-in) .sol-story__copy p { opacity: 0; translate: 0 18px; }
.sv-anim [data-sv="story"]:not(.is-in) .sol-points li { opacity: 0; translate: calc(var(--sx) * -18px) 0; }
.sv-anim [data-sv="story"]:not(.is-in) .sol-story__visual { opacity: 0; translate: calc(var(--sx) * 44px) 0; rotate: calc(var(--sx) * 1.4deg); }
.sv-anim .sol-story:nth-child(even)[data-sv="story"]:not(.is-in) .sol-story__visual { translate: calc(var(--sx) * -44px) 0; rotate: calc(var(--sx) * -1.4deg); }
.sv-anim [data-sv="story"]:not(.is-in) .sol-chip { opacity: 0; scale: .9; }

[data-sv="check"] > div, [data-sv="who"] > div { transition: opacity .8s var(--ease), translate .8s var(--ease); }
[data-sv="check"] > div:nth-child(2), [data-sv="who"] > div:nth-child(2) { transition-delay: .08s; }
[data-sv="check"] > div:nth-child(3), [data-sv="who"] > div:nth-child(3) { transition-delay: .16s; }
[data-sv="check"] > div:nth-child(4) { transition-delay: .24s; } [data-sv="check"] > div:nth-child(5) { transition-delay: .32s; }
[data-sv="check"] > div:nth-child(6) { transition-delay: .4s; }
.sv-anim [data-sv="check"]:not(.is-in) > div, .sv-anim [data-sv="who"]:not(.is-in) > div { opacity: 0; translate: 0 24px; }
.sv-anim [data-sv="check"]:not(.is-in) > div::after, .sv-anim [data-sv="who"]:not(.is-in) > div::before { transform: scaleX(0); }

.sol-tiles .sol-tile:nth-child(2) { transition-delay: 0s, 0s, .08s, .08s, .08s; } .sol-tiles .sol-tile:nth-child(3) { transition-delay: 0s, 0s, .16s, .16s, .16s; }
.sol-tiles .sol-tile:nth-child(4) { transition-delay: 0s, 0s, .24s, .24s, .24s; } .sol-tiles .sol-tile:nth-child(5) { transition-delay: 0s, 0s, .32s, .32s, .32s; }
.sol-tiles .sol-tile:nth-child(6) { transition-delay: 0s, 0s, .4s, .4s, .4s; } .sol-tiles .sol-tile:nth-child(7) { transition-delay: 0s, 0s, .48s, .48s, .48s; }
.sol-tiles .sol-tile:nth-child(8) { transition-delay: 0s, 0s, .56s, .56s, .56s; }
.sv-anim [data-sv="tiles"]:not(.is-in) .sol-tile { opacity: 0; translate: 0 30px; scale: .97; }

.sol-lines b, .sol-lines span { transition: opacity .8s var(--ease), translate .8s var(--ease); }
.sol-lines li:nth-child(2) b, .sol-lines li:nth-child(2) span { transition-delay: .12s; }
.sol-lines li:nth-child(3) b, .sol-lines li:nth-child(3) span { transition-delay: .24s; }
.sol-lines li:nth-child(4) b, .sol-lines li:nth-child(4) span { transition-delay: .36s; }
.sv-anim [data-sv="lines"]:not(.is-in) li::after { transform: scaleX(0); }
.sv-anim [data-sv="lines"]:not(.is-in) b, .sv-anim [data-sv="lines"]:not(.is-in) span { opacity: 0; translate: 0 16px; }

@media (max-width: 980px) {
  .sol-check, .sol-who, .sol-rules__grid, .sol-lines li { grid-template-columns: minmax(0, 1fr); }
  .sol-check { gap: 0; }
  .sol-who { gap: 28px; }
  .sol-lines li { gap: 6px; }
  .sol-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sol-story { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .sol-story:nth-child(even) .sol-story__visual { order: 0; }
  .sol-chip, .sol-story:nth-child(even) .sol-chip { inset-inline: auto 8px; }
  .sol-rules__arch { display: none; }
  /* stacked rows arrive upwards, so a reveal never widens the page */
  .sv-anim [data-sv="story"]:not(.is-in) .sol-story__visual, .sv-anim .sol-story:nth-child(even)[data-sv="story"]:not(.is-in) .sol-story__visual { translate: 0 24px; rotate: none; }
}
@media (max-width: 600px) {
  .sol-tiles { grid-template-columns: minmax(0, 1fr); }
  .sol-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sol-cal__row { grid-template-columns: 76px repeat(14, minmax(0, 1fr)); gap: 2px; }
  .sol-card__pad { padding: 20px; }
}

/* Arabic has no capitals: a Latin word inside an Arabic heading (Excel, CSV) keeps its own case */
:lang(ar) .sol h2, :lang(ar) .sol h3, :lang(ar) .sol .caps { text-transform: none; }

/* --- the home page's links to these pages --- */
.product-link {
  display: inline-block;
  margin-block: .5rem;
  color: #43265d;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.hero .product-link {
  color: inherit;
}

.hero__copy .product-link {
  position: relative;
  z-index: 1;
}

.product-link:focus-visible {
  outline: 3px solid #ac772d;
  outline-offset: 3px;
}

.product-routes {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  padding-block: 1.25rem;
}

.story .product-link {
  color: inherit;
}
