/* /download «Get the app» section: store tiles + QR panel, then three steps to a first sign-in.
 *
 * Scoped .dl-* classes under .dsl, not Tailwind: inside `.dsl` the Webflow reset outranks utility
 * classes (`.dsl a{background-color:#0000}` beats `.bg-*`, `.dsl p{margin:0}` beats `.mt-*`).
 * Colours are the landing's own theme variables, so the section matches the bento cards around it.
 * Logical properties throughout, so Arabic mirrors without a second rule set. */

.dsl .dl-section { padding-block-start: 2rem; scroll-margin-block-start: 5rem; }  /* clears the sticky navbar on #get-the-app */

/* The hero picture is three phones on a TRANSPARENT background (scripts/compose-field-hero.mjs), so
   they sit straight on the hero's own backdrop: no card, no shadow box, no radius around them
   (owner 2026-10-01: no background on top of a background). This file loads on /download only. */
.dsl .solutions_layout.is-fit .solutions_image { aspect-ratio: 4 / 3; object-fit: contain; box-shadow: none; border-radius: 0; }

/* ── the panel: tiles + notes on one side, the QR on the other ── */
.dsl .dl-panel {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
  padding: 1rem;
  border-radius: 1.5rem;
  background-color: var(--neutral--white);
  border: 1px solid var(--_color-theme---lighter);
  box-shadow: 0 24px 60px -32px var(--_color-theme---tint--40);
}
@media (min-width: 768px) {
  .dsl .dl-panel { padding: 1.5rem; }
}
@media (min-width: 992px) {
  .dsl .dl-panel { grid-template-columns: minmax(0, 1fr) 17rem; padding: 2rem; gap: 2rem; }
}

.dsl .dl-panel-main { display: flex; flex-direction: column; justify-content: center; gap: 1.25rem; min-inline-size: 0; }

.dsl .dl-tiles { display: grid; gap: .875rem; }
@media (min-width: 768px) {
  .dsl .dl-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.dsl .dl-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: .875rem;
  min-block-size: 5rem;
  padding: .875rem 1rem;
  border-radius: 1rem;
  text-decoration: none;
  line-height: 1.3;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, filter .2s ease;
}
.dsl .dl-tile-mark {
  flex: none;
  display: grid;
  place-items: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  border-radius: .75rem;
}
.dsl .dl-tile-mark svg { display: block; }
.dsl .dl-tile-lines { display: flex; flex-direction: column; gap: .125rem; min-inline-size: 0; text-align: start; }
.dsl .dl-tile-kicker { font-size: .75rem; letter-spacing: .01em; opacity: .8; }
.dsl .dl-tile-name { font-size: 1.0625rem; font-weight: 700; }

/* Live APK: the site's gradient brand button. */
.dsl a.dl-tile.is-primary {
  color: var(--neutral--white);
  background-image: linear-gradient(135deg, var(--_color-theme---tint--60), var(--_color-theme---normal));
  box-shadow: 0 14px 30px -12px var(--_color-theme---tint--60);
}
.dsl a.dl-tile.is-primary .dl-tile-mark { background-color: color-mix(in srgb, var(--neutral--white) 20%, transparent); }
.dsl a.dl-tile.is-primary:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* Live store link: outlined, themed. */
.dsl a.dl-tile.is-store {
  color: var(--_color-theme---darkest);
  background-color: var(--_color-theme---lightest);
  border: 1px solid var(--_color-theme---lighter);
}
.dsl a.dl-tile.is-store .dl-tile-mark { background-color: var(--neutral--white); color: var(--_color-theme---normal); }
.dsl a.dl-tile.is-store:hover { transform: translateY(-2px); border-color: var(--_color-theme---light); box-shadow: 0 10px 24px -12px var(--_color-theme---tint--40); }

.dsl .dl-tile:focus-visible { outline: 2px solid var(--_color-theme---normal); outline-offset: 3px; }

/* Not published yet: same footprint, quiet, with a «Coming soon» badge. */
.dsl .dl-tile.is-soon {
  color: var(--neutral--dark);
  background-color: var(--neutral--white);
  border: 1px dashed var(--neutral--lighter);
  cursor: default;
}
.dsl .dl-tile.is-soon .dl-tile-mark { background-color: var(--neutral--lightest); }
.dsl .dl-tile-badge {
  position: absolute;
  inset-block-start: -.625rem;
  inset-inline-end: .75rem;
  padding: .125rem .5rem;
  border-radius: 999px;
  font-size: .6875rem;
  font-weight: 600;
  color: var(--_color-theme---normal);
  background-color: var(--_color-theme---lighter);
}

.dsl ul.dl-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.dsl ul.dl-notes li { display: flex; align-items: flex-start; gap: .5rem; font-size: .8125rem; line-height: 1.6; color: var(--shade--70); }
.dsl ul.dl-notes li svg { flex: none; margin-block-start: .2rem; color: var(--_color-theme---normal); }

/* ── QR (desktop only: a phone cannot scan its own screen) ── */
.dsl .dl-panel-qr {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 1.25rem;
  border-radius: 1.25rem;
  text-align: center;
  background-image: linear-gradient(180deg, var(--_color-theme---lightest), var(--_color-theme---lighter));
}
@media (min-width: 992px) {
  .dsl .dl-panel-qr { display: flex; }
}
.dsl .dl-qr-frame {
  padding: .625rem;
  border-radius: 1rem;
  background-color: var(--neutral--white);
  box-shadow: 0 12px 28px -16px var(--_color-theme---tint--60);
}
.dsl .dl-qr { inline-size: 9.5rem; }
.dsl .dl-qr svg { display: block; inline-size: 100%; block-size: auto; }
.dsl .dl-qr.is-empty { display: grid; place-items: center; aspect-ratio: 1; color: var(--_color-theme---light); }
.dsl .dl-qr-copy { display: flex; flex-direction: column; gap: .25rem; }
.dsl .dl-qr-copy p { margin: 0; }
.dsl .dl-qr-copy p.dl-qr-title { font-weight: 700; font-size: .9375rem; color: var(--_color-theme---darkest); }
.dsl .dl-qr-copy p.dl-qr-hint { font-size: .8125rem; line-height: 1.55; color: var(--shade--70); }

/* ── three steps ── */
.dsl ol.dl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: none; }
@media (min-width: 768px) {
  .dsl ol.dl-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Phone: number beside the text; from tablet up: number on top of a card each. */
.dsl .dl-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: .875rem;
  row-gap: .25rem;
  padding: 1.25rem;
  border-radius: 1rem;
  background-color: var(--neutral--white);
}
.dsl .dl-step-n {
  grid-row: span 2;
  align-self: start;
  display: grid;
  place-items: center;
  inline-size: 2rem;
  block-size: 2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9375rem;
  color: var(--neutral--white);
  background-image: linear-gradient(135deg, var(--_color-theme---tint--60), var(--_color-theme---normal));
}
@media (min-width: 768px) {
  .dsl .dl-step { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; }
  .dsl .dl-step-n { margin-block-end: .5rem; }
}
.dsl .dl-step p { margin: 0; }
.dsl .dl-step p.dl-step-title { font-weight: 700; font-size: 1.0625rem; color: var(--_color-theme---darkest); }
.dsl .dl-step p.dl-step-body { font-size: .9375rem; line-height: 1.65; color: var(--shade--70); }

/* ── «Inside Ta3mir Field» guided tour (app/landing/sections/download/FieldTour.tsx) ──
   The phone stands straight on the section background (no panel behind it); the steps sit beside
   it. The active step's bar is the tour's clock: its animation ends → next step. */
.dsl .dl-tour { display: flex; flex-direction: column; gap: 2rem; }

.dsl .dl-tour-nav { display: flex; align-items: center; justify-content: center; gap: .75rem; flex-wrap: wrap; }
.dsl .dl-tour-tabs {
  display: inline-flex; gap: .25rem; padding: .3rem; border-radius: 999px;
  background-color: var(--neutral--white);
  box-shadow: 0 10px 30px -18px var(--_color-theme---tint--60);
}
.dsl .dl-tour-tab {
  padding: .55rem 1.1rem; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-size: .9375rem; color: var(--shade--70); background: transparent;
  transition: background-color .25s ease, color .25s ease;
}
@media (max-width: 479px) {
  .dsl .dl-tour-nav { gap: .5rem; }
  .dsl .dl-tour-tab { padding: .5rem .75rem; font-size: .8125rem; }
}
.dsl .dl-tour-tab:hover { color: var(--_color-theme---darkest); }
.dsl .dl-tour-tab.is-active { color: var(--neutral--white); background-image: linear-gradient(135deg, var(--_color-theme---tint--60), var(--_color-theme---normal)); }
.dsl .dl-tour-tab:focus-visible,
.dsl .dl-tour-toggle:focus-visible,
.dsl .dl-tour-step-head:focus-visible { outline: 2px solid var(--_color-theme---normal); outline-offset: 2px; }
.dsl .dl-tour-toggle {
  display: grid; place-items: center; inline-size: 2.5rem; block-size: 2.5rem; border-radius: 999px; border: 0; cursor: pointer;
  color: var(--_color-theme---normal); background-color: var(--neutral--white);
  box-shadow: 0 10px 30px -18px var(--_color-theme---tint--60);
}

.dsl .dl-tour-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 992px) {
  .dsl .dl-tour-grid { grid-template-columns: auto minmax(0, 34rem); justify-content: center; gap: 5rem; }
}

/* Phone: the same drawn frame as scripts/compose-field-hero.mjs, at page scale. */
.dsl .dl-tour-stage { display: flex; justify-content: center; }
.dsl .dl-tour-phone {
  position: relative; inline-size: min(17rem, 72vw); padding: .6rem; border-radius: 3rem;
  background: linear-gradient(160deg, #2b3245, #0c111d 40%, #1a2133);
  box-shadow: inset 0 0 0 1.5px #3b4560, inset 0 0 0 4px #0a0e18, 0 30px 60px -28px var(--_color-theme---darkest);
  animation: dl-tour-float 7s ease-in-out infinite;
}
@media (min-width: 992px) {
  .dsl .dl-tour-phone { inline-size: 19rem; }
}
.dsl .dl-tour-screen { position: relative; aspect-ratio: 640 / 1391; border-radius: 2.4rem; overflow: hidden; background-color: #0b1530; }
.dsl .dl-tour-island { position: absolute; inset-block-start: 1.35rem; inset-inline-start: 50%; inline-size: 5rem; block-size: 1.4rem; margin-inline-start: -2.5rem; border-radius: 1rem; background: #05070c; }
.dsl .dl-tour-shot { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.dsl .dl-tour-shot.is-on { opacity: 1; }

/* Spotlight: a full-width band whose huge outer shadow dims the rest of the screen. */
.dsl .dl-tour-spot {
  position: absolute; inset-inline: 2.5%; border-radius: .9rem;
  box-shadow: 0 0 0 2px var(--_color-theme---normal), 0 0 0 100vmax rgb(4 12 34 / .42);
  transition: top .55s cubic-bezier(.3, .7, .2, 1), height .55s cubic-bezier(.3, .7, .2, 1);
  pointer-events: none;
}
.dsl .dl-tour-spot::after {
  content: ''; position: absolute; inset: -2px; border-radius: inherit;
  box-shadow: 0 0 0 0 var(--_color-theme---tint--60);
  animation: dl-tour-pulse 1.8s ease-out infinite;
}
.dsl .dl-tour-spot-n {
  position: absolute; inset-block-start: -.7rem; inset-inline-end: -.35rem;
  display: grid; place-items: center; inline-size: 1.5rem; block-size: 1.5rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; color: var(--neutral--white);
  background-color: var(--_color-theme---normal); box-shadow: 0 0 0 2px var(--neutral--white);
}

/* Steps */
.dsl ol.dl-tour-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.dsl .dl-tour-step { position: relative; border-radius: 1rem; overflow: hidden; transition: background-color .3s ease, box-shadow .3s ease; }
.dsl .dl-tour-step.is-active { background-color: var(--neutral--white); box-shadow: 0 18px 40px -26px var(--_color-theme---tint--60); }
.dsl .dl-tour-step-head {
  display: flex; align-items: center; gap: .875rem; inline-size: 100%; padding: .9rem 1.1rem; border: 0; cursor: pointer;
  font: inherit; text-align: start; background: transparent; color: var(--shade--70);
}
.dsl .dl-tour-step-n {
  flex: none; display: grid; place-items: center; inline-size: 1.75rem; block-size: 1.75rem; border-radius: 999px;
  font-size: .8125rem; font-weight: 700; color: var(--_color-theme---normal); background-color: var(--_color-theme---lighter);
  transition: color .3s ease, background-color .3s ease;
}
.dsl .dl-tour-step-title { font-size: 1.0625rem; font-weight: 600; }
.dsl .dl-tour-step.is-active .dl-tour-step-head { color: var(--_color-theme---darkest); }
.dsl .dl-tour-step.is-active .dl-tour-step-n { color: var(--neutral--white); background-image: linear-gradient(135deg, var(--_color-theme---tint--60), var(--_color-theme---normal)); }
.dsl .dl-tour-step-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.dsl .dl-tour-step.is-active .dl-tour-step-body { grid-template-rows: 1fr; }
.dsl .dl-tour-step-body > div { overflow: hidden; }
.dsl .dl-tour-step-body p {
  margin: 0; padding-block-end: 1.1rem; padding-inline: calc(1.1rem + 1.75rem + .875rem) 1.1rem;
  font-size: .9375rem; line-height: 1.7; color: var(--shade--70);
}
.dsl .dl-tour-bar { position: absolute; inset-inline: 0; inset-block-end: 0; block-size: 3px; background-color: var(--_color-theme---lighter); }
.dsl .dl-tour-bar-fill {
  display: block; block-size: 100%; inline-size: 100%;
  transform-origin: left center; transform: scaleX(0);
  background-image: linear-gradient(90deg, var(--_color-theme---tint--60), var(--_color-theme---normal));
  animation: dl-tour-fill 5.5s linear forwards;
}
[dir="rtl"] .dsl .dl-tour-bar-fill { transform-origin: right center; }
.dsl .dl-tour.is-paused .dl-tour-bar-fill,
.dsl .dl-tour.is-paused .dl-tour-phone { animation-play-state: paused; }

@keyframes dl-tour-fill { to { transform: scaleX(1); } }
@keyframes dl-tour-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes dl-tour-pulse {
  0% { box-shadow: 0 0 0 0 var(--_color-theme---tint--60); }
  100% { box-shadow: 0 0 0 10px transparent; }
}

/* Reduced motion: nothing moves on its own; steps change only on click, without sliding. */
@media (prefers-reduced-motion: reduce) {
  .dsl .dl-tour-bar { display: none; }
  .dsl .dl-tour-phone, .dsl .dl-tour-spot::after { animation: none; }
  .dsl .dl-tour-spot, .dsl .dl-tour-shot, .dsl .dl-tour-step-body { transition: none; }
}
