/* ==========================================================================
   أبيان المالية — صفحة الهبوط (حملة العملاء المحتملين)
   Design tokens lifted from abyancapital.sa: Almarai, #050717 navy,
   #0039a7 primary blue, mint/teal accents, 40px pill buttons.
   ========================================================================== */

:root {
  /* Brand core */
  --navy: #050717;
  --navy-soft: #0b0f26;
  --navy-card: #17192a;
  --blue: #0039a7;
  --blue-lift: #2b38ba;
  --blue-bright: #004ddd;
  --mint: #55bb95;
  --teal: #41aeb3;

  /* Neutrals */
  --paper: #ffffff;
  --paper-dim: #f7f7f7;
  --ink: #050717;
  --muted: #595862;
  --muted-soft: #8a8994;
  --line: rgba(5, 7, 23, 0.1);
  --line-strong: rgba(5, 7, 23, 0.16);

  /* Tints */
  --tint-blue: #e7f2fd;
  --tint-blue-2: #cfe6fa;
  --tint-blue-3: #d8edff;
  --tint-mint: #eef8f4;
  --tint-mint-2: #dcf3eb;
  --tint-mint-3: #ccebdf;

  /* Feedback */
  --danger: #b3261e;

  /* Shape */
  --pill: 40px;
  --r-card: 24px;
  --r-field: 14px;

  /* Elevation */
  --shadow-card: 0 1px 2px rgba(5, 7, 23, 0.04), 0 12px 32px -12px rgba(5, 7, 23, 0.14);
  --shadow-lift: 0 2px 4px rgba(5, 7, 23, 0.05), 0 28px 60px -20px rgba(5, 7, 23, 0.26);

  /* Rhythm */
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(64px, 8vw, 112px);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Almarai", "Segoe UI", sans-serif;
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.85;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------------- layout --- */

.shell {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--blue);
  background: var(--tint-blue);
  border-radius: var(--pill);
  padding: 7px 18px;
  line-height: 1.6;
}

.eyebrow--mint {
  color: #1f6b52;
  background: var(--tint-mint);
}

.eyebrow--onDark {
  color: #a9c8ff;
  background: rgba(255, 255, 255, 0.07);
}

.eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.h-hero {
  font-size: clamp(30px, 5.2vw, 58px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.h-title {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.h-sub {
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 700;
  line-height: 1.5;
}

.lede {
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
  max-width: 58ch;
}

.on-dark .lede,
.on-dark .para {
  color: rgba(255, 255, 255, 0.72);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 62ch;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.grad-word {
  background: linear-gradient(100deg, var(--blue-bright), var(--teal) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* -------------------------------------------------------------- buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--pill);
  padding: 16px 38px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.24s ease, background-color 0.2s ease,
    color 0.2s ease, border-color 0.2s ease;
  will-change: transform;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(0, 57, 167, 0.7);
}

.btn--primary:hover {
  background: var(--blue-lift);
  box-shadow: 0 16px 34px -12px rgba(43, 56, 186, 0.72);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}

.btn--ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--blue);
  color: var(--blue);
}

.btn--onDark {
  background: #fff;
  color: var(--navy);
}

.btn--onDark:hover {
  background: var(--tint-blue);
}

.btn--block {
  width: 100%;
}

.btn--lg {
  padding: 19px 44px;
  font-size: 17px;
}

.btn__spin {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
  display: none;
  flex: none;
}

.btn.is-busy {
  pointer-events: none;
  opacity: 0.82;
}

.btn.is-busy .btn__spin {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------- header --- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.topbar.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(5, 7, 23, 0.5);
}

.topbar__in {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand img {
  width: 36px;
  height: 36px;
}

.brand__txt {
  display: grid;
  line-height: 1.3;
}

.brand b {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand__txt span {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted-soft);
  letter-spacing: 0;
}

.topbar__spacer {
  flex: 1;
}

.topbar__tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--muted);
  direction: ltr;
  transition: color 0.2s ease;
}

.topbar__tel:hover {
  color: var(--blue);
}

.topbar__tel svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.topbar .btn {
  padding: 12px 28px;
  font-size: 15px;
}

@media (max-width: 720px) {
  .topbar__tel span {
    display: none;
  }
  .topbar .btn {
    padding: 11px 20px;
    font-size: 14px;
  }
  .brand b {
    font-size: 16px;
  }
}

/* ----------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  padding-block: clamp(40px, 5.5vw, 76px) clamp(56px, 7vw, 96px);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset-inline-start: -18%;
  top: -34%;
  width: 74vw;
  height: 74vw;
  max-width: 940px;
  max-height: 940px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 77, 221, 0.13), transparent 62%);
  z-index: -2;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to left, var(--line) 1px, transparent 1px);
  background-size: 96px 100%;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 72%);
  z-index: -1;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-top: clamp(8px, 3vw, 40px);
}

.hero__copy .h-hero em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}

.hero__copy .h-hero em::after {
  content: "";
  position: absolute;
  inset-inline: -2px;
  bottom: 0.1em;
  height: 0.34em;
  background: linear-gradient(90deg, rgba(85, 187, 149, 0.42), rgba(65, 174, 179, 0.18));
  border-radius: 3px;
  z-index: -1;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  padding-top: 2px;
}

.hero__proof li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.hero__proof svg {
  width: 19px;
  height: 19px;
  flex: none;
  stroke: var(--mint);
  stroke-width: 2.4;
  fill: none;
}

.hero__licence {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  max-width: 520px;
}

.hero__licence img {
  width: 54px;
  flex: none;
}

.hero__licence p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.hero__licence strong {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 940px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__copy {
    padding-top: 0;
  }
}

/* ------------------------------------------------------------ form card --- */

.leadcard {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  scroll-margin-top: 100px;
}

.leadcard__top {
  padding: 26px clamp(22px, 3vw, 32px) 22px;
  background: linear-gradient(168deg, var(--navy) 0%, #101637 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.leadcard__top::after {
  content: "";
  position: absolute;
  inset-inline-end: -60px;
  top: -70px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(85, 187, 149, 0.34), transparent 66%);
}

.leadcard__top h2 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.5;
  position: relative;
}

.leadcard__top p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 6px;
  position: relative;
}

.leadform {
  padding: clamp(22px, 3vw, 30px);
  display: grid;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.leadform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field > label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.field > label span {
  color: var(--blue);
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-field);
  background: var(--paper-dim);
  font-size: 15px;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
  appearance: none;
}

.field input::placeholder {
  color: var(--muted-soft);
}

.field input:hover,
.field select:hover {
  border-color: rgba(5, 7, 23, 0.28);
}

.field input:focus,
.field select:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 57, 167, 0.1);
}

.field input[type="tel"] {
  direction: ltr;
  text-align: right;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23595862' d='M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  background-size: 13px;
  padding-left: 42px;
  cursor: pointer;
}

.field.has-error input,
.field.has-error select {
  border-color: var(--danger);
  background: #fdf6f5;
}

.field__err {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--danger);
  display: none;
}

.field.has-error .field__err {
  display: block;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
  cursor: pointer;
}

.consent input {
  appearance: none;
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 4px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper-dim);
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.consent input:checked {
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23ffffff' d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E") center / 11px no-repeat;
  border-color: var(--blue);
}

.consent.has-error input {
  border-color: var(--danger);
}

.leadform__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted-soft);
  text-align: center;
}

.leadform__foot svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  flex: none;
}

.hp {
  position: absolute;
  inset-inline-start: -9999px;
  opacity: 0;
  pointer-events: none;
}

.formnote {
  display: none;
  margin: 0 clamp(22px, 3vw, 30px) clamp(22px, 3vw, 30px);
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  background: #fdf1f0;
  color: var(--danger);
  border: 1px solid rgba(179, 38, 30, 0.22);
}

.formnote.is-on {
  display: block;
}

/* success panel */
.leadcard__done {
  display: none;
  padding: clamp(30px, 4vw, 44px) clamp(22px, 3vw, 32px);
  text-align: center;
}

.leadcard.is-done .leadform,
.leadcard.is-done .leadcard__top,
.leadcard.is-done .formnote {
  display: none;
}

.leadcard.is-done .leadcard__done {
  display: block;
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.leadcard__done .tick {
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--tint-mint-2);
  display: grid;
  place-items: center;
}

.leadcard__done .tick svg {
  width: 28px;
  height: 28px;
  stroke: #1f6b52;
  stroke-width: 3;
  fill: none;
}

.leadcard__done h2 {
  font-size: 23px;
  font-weight: 800;
  margin-bottom: 10px;
}

.leadcard__done p {
  color: var(--muted);
  font-size: 15px;
  max-width: 44ch;
  margin-inline: auto;
}

.leadcard__done .stores {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}

.leadcard__done .stores img {
  height: 42px;
  width: auto;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ---------------------------------------------------------------- stats --- */

.stats {
  border-block: 1px solid var(--line);
  background: var(--paper-dim);
}

.stats__in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: clamp(28px, 4vw, 44px);
  gap: 24px;
}

.stat {
  text-align: center;
  border-inline-start: 1px solid var(--line);
  padding-inline: 12px;
}

.stat:first-child {
  border-inline-start: 0;
}

.stat b {
  display: block;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--navy);
  direction: ltr;
}

.stat span {
  font-size: 13.5px;
  color: var(--muted);
}

@media (max-width: 700px) {
  .stats__in {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 12px;
  }
  .stat:nth-child(odd) {
    border-inline-start: 0;
  }
}

/* ----------------------------------------------------------- portfolios --- */

.folios {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(16px, 2vw, 22px);
}

.folio {
  grid-column: span 3;
  position: relative;
  padding: clamp(26px, 3vw, 34px);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.28s ease;
  overflow: hidden;
}

.folio:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

/* two feature cards, then a 3-up row of smaller ones */
.folio--wide {
  grid-column: span 3;
}

.folio--third {
  grid-column: span 2;
}

.folio--mint {
  background: linear-gradient(160deg, var(--tint-mint) 0%, #fff 76%);
  border-color: rgba(85, 187, 149, 0.28);
}

.folio--blue {
  background: linear-gradient(160deg, var(--tint-blue) 0%, #fff 76%);
  border-color: rgba(0, 77, 221, 0.2);
}

.folio__tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--pill);
  background: rgba(5, 7, 23, 0.06);
  color: var(--muted);
}

.folio--mint .folio__tag {
  background: rgba(85, 187, 149, 0.2);
  color: #1f6b52;
}

.folio--blue .folio__tag {
  background: rgba(0, 77, 221, 0.12);
  color: var(--blue);
}

.folio h3 {
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 800;
  line-height: 1.5;
}

.folio p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
  flex: 1;
}

.folio__num {
  display: flex;
  align-items: baseline;
  gap: 8px;
  direction: ltr;
  justify-content: flex-end;
}

.folio__num b {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.folio--mint .folio__num b {
  color: #24785c;
}

.folio--blue .folio__num b {
  color: var(--blue);
}

.folio__num i {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.folio__meter {
  height: 6px;
  border-radius: 4px;
  background: rgba(5, 7, 23, 0.08);
  overflow: hidden;
}

.folio__meter i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--teal), var(--mint));
  transform-origin: right center;
  transform: scaleX(var(--fill, 0.5));
}

.folio--blue .folio__meter i {
  background: linear-gradient(90deg, var(--blue-bright), #6f9dff);
}

.folio__risk {
  font-size: 12.5px;
  color: var(--muted-soft);
  font-weight: 600;
}

@media (max-width: 900px) {
  .folios {
    grid-template-columns: 1fr;
  }
  .folio,
  .folio--wide,
  .folio--third {
    grid-column: span 1;
  }
}

.disclaimer {
  margin-top: 26px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--muted-soft);
  max-width: 84ch;
}

/* ------------------------------------------------------------ dark band --- */

.band-dark {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.band-dark::before {
  content: "";
  position: absolute;
  inset-inline-end: -12%;
  bottom: -46%;
  width: 66vw;
  height: 66vw;
  max-width: 860px;
  max-height: 860px;
  background: radial-gradient(circle, rgba(65, 174, 179, 0.2), transparent 62%);
  z-index: -1;
  pointer-events: none;
}

/* ------------------------------------------------------------- benefits --- */

.perks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 20px);
}

.perk {
  display: flex;
  gap: 18px;
  padding: clamp(24px, 3vw, 30px);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.perk:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

.perk:nth-child(3) {
  grid-column: span 2;
}

.perk__ico {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(85, 187, 149, 0.16);
}

.perk__ico svg {
  width: 22px;
  height: 22px;
  stroke: var(--mint);
  stroke-width: 2;
  fill: none;
}

.perk:nth-child(even) .perk__ico {
  background: rgba(109, 155, 255, 0.16);
}

.perk:nth-child(even) .perk__ico svg {
  stroke: #8fb2ff;
}

.perk h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 7px;
}

.perk p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.85;
}

@media (max-width: 760px) {
  .perks {
    grid-template-columns: 1fr;
  }
  .perk:nth-child(3) {
    grid-column: span 1;
  }
}

/* ----------------------------------------------------------- calculator --- */

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.calc__controls {
  display: grid;
  gap: 30px;
}

.slider {
  display: grid;
  gap: 12px;
}

.slider__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.slider__top label {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.slider__val {
  font-size: 17px;
  font-weight: 800;
  color: var(--mint);
  direction: ltr;
  font-variant-numeric: tabular-nums;
}

.slider input[type="range"] {
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  direction: ltr;
}

.slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--mint);
  cursor: grab;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.slider input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--mint);
  cursor: grab;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip {
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  border-radius: var(--pill);
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.chip:hover {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.chip[aria-pressed="true"] {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
}

.calc__out {
  padding: clamp(26px, 3.4vw, 38px);
  border-radius: var(--r-card);
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  backdrop-filter: blur(6px);
}

.calc__out small {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.66);
}

.calc__big {
  font-size: clamp(36px, 5.6vw, 56px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 6px 0 4px;
  direction: ltr;
  font-variant-numeric: tabular-nums;
}

.calc__cur {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.calc__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.calc__split div b {
  display: block;
  font-size: 19px;
  font-weight: 800;
  direction: ltr;
  font-variant-numeric: tabular-nums;
}

.calc__split div span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
}

.calc__split div:last-child b {
  color: var(--mint);
}

.calc__out .btn {
  margin-top: 26px;
}

@media (max-width: 900px) {
  .calc {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------- shariah --- */

.shariah {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}

.board {
  display: grid;
  gap: 12px;
}

.board__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease;
}

.board__row:hover {
  transform: translateX(-5px);
}

.board__row:nth-child(2) {
  margin-inline-start: clamp(0px, 4vw, 44px);
}

.board__row:nth-child(3) {
  margin-inline-start: clamp(0px, 8vw, 88px);
}

.board__ini {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  background: var(--tint-mint-2);
  color: #1f6b52;
}

.board__row:nth-child(2) .board__ini {
  background: var(--tint-blue-3);
  color: var(--blue);
}

.board__row:nth-child(3) .board__ini {
  background: var(--paper-dim);
  color: var(--muted);
}

.board__row b {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.board__row span {
  font-size: 13px;
  color: var(--muted-soft);
}

@media (max-width: 860px) {
  .shariah {
    grid-template-columns: 1fr;
  }
  .board__row:nth-child(2),
  .board__row:nth-child(3) {
    margin-inline-start: 0;
  }
}

/* ------------------------------------------------------------------ faq --- */

.faq {
  background: var(--tint-blue);
}

.faq__list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.qa {
  background: var(--tint-blue-2);
  border-radius: 16px;
  overflow: hidden;
  transition: background-color 0.2s ease;
}

.qa[open] {
  background: #fff;
  box-shadow: var(--shadow-card);
}

.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.7;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--navy);
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary::after {
  content: "";
  width: 15px;
  height: 15px;
  margin-inline-start: auto;
  flex: none;
  background: currentColor;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.qa[open] summary::after {
  transform: rotate(180deg);
}

.qa__body {
  padding: 0 24px 22px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--muted);
  animation: fade 0.3s ease both;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ------------------------------------------------------------ final cta --- */

.finale {
  text-align: center;
  display: grid;
  gap: 24px;
  justify-items: center;
}

.finale .stores {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.finale .stores img {
  height: 46px;
  width: auto;
}

/* --------------------------------------------------------------- footer --- */

.foot {
  background: #030410;
  color: rgba(255, 255, 255, 0.62);
  padding-block: clamp(44px, 5vw, 64px) 30px;
  font-size: 13.5px;
}

.foot__top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 34px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.foot .brand b {
  color: #fff;
}

.foot .brand__txt span {
  color: rgba(255, 255, 255, 0.5);
}

.foot__blurb {
  margin-top: 16px;
  line-height: 1.9;
  max-width: 52ch;
}

.foot__meta {
  display: grid;
  gap: 10px;
  align-content: start;
}

.foot__meta a,
.foot__meta p {
  display: flex;
  gap: 8px;
  align-items: center;
}

.foot__meta a:hover {
  color: #fff;
}

.foot__meta b {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}

.foot__bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 760px) {
  .foot__top {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------- mobile cta bar --- */

.mbar {
  display: none;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  gap: 10px;
}

.mbar .btn {
  flex: 1;
  padding: 15px 20px;
  font-size: 15px;
}

@media (max-width: 720px) {
  .mbar {
    display: flex;
  }
  body {
    padding-bottom: 86px;
  }
}

/* ---------------------------------------------------------- animations --- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
