/*
 * I-FIKR Shariah Tools landing page
 * Everything is scoped under .ift so theme and Elementor styles do not leak in
 * and these styles do not leak out. Tokens follow the Fikr.ai landing page.
 *
 * Contents: tokens and guards, type, buttons, shared bits, hero, carousel,
 * sticky section nav, stock, faraid, zakat, video, closing, motion, breakpoints.
 */

html body .ift{
  --ift-ink: #0A2540;
  --ift-accent: #2F6BFF;
  --ift-btn: #111111;
  --ift-btn-hover: #0B5FC0;
  --ift-text: #3D4757;
  --ift-muted: #5B6475;
  --ift-line: #E6E9EF;
  --ift-soft: #F7F8FA;
  --ift-light-label: #A9C1DA;
  --ift-light-text: #B7C2D2;
  --ift-stock: #0B5FC0;
  --ift-stock-2: #0089D8;
  --ift-faraid: #0E7C66;
  --ift-faraid-2: #1E9E7E;
  --ift-gold: #E8C877;
  --ift-gold-ink: #7A5A12;
  --ift-display: 'Sora', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ift-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ift-ease: cubic-bezier(.2, .7, .2, 1);
  --ift-top: 75px;            /* height of the site's sticky header; measured by JS */
  --ift-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath d='M12 12h48v48H12zM36 2l34 34-34 34L2 36z' fill='none' stroke='%230A2540' stroke-width='1'/%3E%3C/svg%3E");
  --ift-star-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath d='M12 12h48v48H12zM36 2l34 34-34 34L2 36z' fill='none' stroke='%23FFFFFF' stroke-width='1'/%3E%3C/svg%3E");
  --ift-star-green: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath d='M12 12h48v48H12zM36 2l34 34-34 34L2 36z' fill='none' stroke='%230E7C66' stroke-width='1'/%3E%3C/svg%3E");

  font-family: var(--ift-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ift-ink);
  background: var(--ift-soft);
  -webkit-font-smoothing: antialiased;
  text-align: left;
}

/* Break out of a boxed theme container so bands run edge to edge. */
html body .ift.ift--bleed{
  width: 100vw;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}
body.ift-page{ overflow-x: clip; }

/* ---------- Theme / Elementor guards ---------- */
html body .ift *, html body .ift *::before, html body .ift *::after{ box-sizing: border-box; }
html body .ift h1, html body .ift h2, html body .ift h3, html body .ift p, html body .ift ul, html body .ift ol, html body .ift dl, html body .ift dd, html body .ift figure, html body .ift blockquote{ margin: 0; padding: 0; }
html body .ift ul, html body .ift ol{ list-style: none; }
html body .ift blockquote{ border: 0; background: none; font-style: normal; quotes: none; }
html body .ift blockquote::before, html body .ift blockquote::after{ content: none; }
html body .ift a{ color: inherit; text-decoration: none; box-shadow: none; }
html body .ift a:focus-visible, html body .ift button:focus-visible{ outline: 2px solid var(--ift-accent); outline-offset: 3px; }
html body .ift h1, html body .ift h2, html body .ift h3{ font-family: var(--ift-display); font-weight: 600; color: inherit; letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; text-transform: none; }
html body .ift p, html body .ift li, html body .ift span, html body .ift small, html body .ift b, html body .ift dt, html body .ift dd, html body .ift figcaption{ font-family: inherit; letter-spacing: inherit; text-transform: none; color: inherit; }
html body .ift button{ font-family: var(--ift-body); font-size: inherit; line-height: 1.2; text-transform: none; letter-spacing: normal; background: none; background-image: none; border: 0; border-radius: 0; padding: 0; margin: 0; color: inherit; text-shadow: none; box-shadow: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
html body .ift svg{ overflow: visible; vertical-align: middle; flex: none; }
html body .ift b{ font-weight: 600; }
html body .ift small{ font-size: inherit; }
html body .ift i{ font-style: normal; }

.ift .ift-wrap{
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.ift .ift-stack{ display: flex; flex-direction: column; gap: 72px; }

/* ---------- Type ---------- */
.ift .ift-label{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ift-muted);
  line-height: 1.5;
}
.ift .ift-label b{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--ift-tool, var(--ift-ink));
  color: #FFFFFF;
  font-family: var(--ift-display);
  font-size: 12px;
  letter-spacing: .04em;
}
.ift .ift-label--light{ color: var(--ift-light-label); }
.ift .ift-h1{ font-size: clamp(34px, 4.6vw, 58px); line-height: 1.08; letter-spacing: -.035em; color: var(--ift-ink); }
.ift .ift-h2{ font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; letter-spacing: -.035em; color: var(--ift-ink); }
.ift .ift-h2--light{ color: #FFFFFF; }
.ift .ift-h3{ font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.03em; color: inherit; }
.ift .ift-body{ font-size: 16.5px; color: var(--ift-text); }
.ift .ift-body--light{ color: var(--ift-light-text); }
.ift .ift-grad{
  background: linear-gradient(90deg, #0B4F9C 0%, #0089D8 55%, #2E9E5B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ift .ift-quote{
  position: relative;
  padding-left: 20px;
  font-family: var(--ift-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -.015em;
  color: var(--ift-ink);
}
.ift .ift-quote::before{ content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; background: var(--ift-tool, var(--ift-accent)); }
.ift .ift-quote--center{ padding: 0; max-width: 760px; text-align: center; font-size: clamp(20px, 2.3vw, 26px); }
.ift .ift-quote--center::before{ content: none; }
.ift .ift-quote--light{ color: #FFFFFF; }
.ift .ift-note{ font-size: 13.5px; color: var(--ift-muted); max-width: 520px; }
.ift .ift-note--light{ color: var(--ift-light-label); }

/* ---------- Buttons ---------- */
.ift .ift-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ift-btn);
  color: #FFFFFF;
  font-family: var(--ift-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.ift .ift-btn svg{ transition: transform .3s var(--ift-ease); }
.ift .ift-btn:hover, .ift .ift-btn:focus-visible{ background: var(--ift-btn-hover); color: #FFFFFF; transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(11, 18, 32, .5); }
.ift .ift-btn:hover svg{ transform: translateX(4px); }
.ift .ift-btn--outline{ background: #FFFFFF; color: var(--ift-ink); border-color: #D5DAE3; }
.ift .ift-btn--outline:hover, .ift .ift-btn--outline:focus-visible{ background: #FFFFFF; color: var(--ift-btn-hover); border-color: var(--ift-btn-hover); box-shadow: none; }
.ift .ift-btn--light{ background: #FFFFFF; color: #111111; }
.ift .ift-btn--light:hover, .ift .ift-btn--light:focus-visible{ background: #FFFFFF; color: var(--ift-btn-hover); box-shadow: 0 0 0 3px rgba(255, 255, 255, .28), 0 14px 28px -14px rgba(0, 0, 0, .5); }
.ift .ift-btn--ghost{ background: rgba(255, 255, 255, .08); color: #FFFFFF; border-color: rgba(255, 255, 255, .45); }
.ift .ift-btn--ghost:hover, .ift .ift-btn--ghost:focus-visible{ background: rgba(255, 255, 255, .18); border-color: #FFFFFF; }
.ift .ift-btn--stock{ background: linear-gradient(120deg, #0B4F9C, #0A72D1); }
.ift .ift-btn--stock:hover, .ift .ift-btn--stock:focus-visible{ background: linear-gradient(120deg, #093F7E, #0B5FC0); }
.ift .ift-btn--faraid{ background: var(--ift-faraid); }
.ift .ift-btn--faraid:hover, .ift .ift-btn--faraid:focus-visible{ background: #0A5E4E; }
.ift .ift-btn--gold{ background: var(--ift-gold); color: #1F1703; font-weight: 600; }
.ift .ift-btn--gold:hover, .ift .ift-btn--gold:focus-visible{ background: #F3DDA6; color: #1F1703; }
.ift .ift-actions{ display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Shared bits ---------- */
.ift .ift-pattern{
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--ift-star);
  background-size: 72px 72px;
  opacity: .055;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(70% 70% at 50% 0%, #000 0%, transparent 78%);
}
.ift .ift-pattern--light{ background-image: var(--ift-star-light); opacity: .07; -webkit-mask-image: radial-gradient(60% 90% at 100% 0%, #000 0%, transparent 75%); mask-image: radial-gradient(60% 90% at 100% 0%, #000 0%, transparent 75%); }
.ift .ift-pattern--faraid{ background-image: var(--ift-star-green); opacity: .09; }
.ift .ift-chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: #DCE8F7;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ift .ift-chip--light{ border-color: #CFE5DC; background: #EEF7F3; color: #0A5E4E; }
.ift .ift-chip--gold{ border-color: rgba(232, 200, 119, .5); background: rgba(232, 200, 119, .12); color: #F3DDA6; }
.ift .ift-pill{ display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.ift .ift-pill i{ width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ift .ift-pill--ok{ background: rgba(124, 224, 163, .16); color: #9BEBBB; }
.ift .ift-pill--gold{ background: rgba(232, 200, 119, .16); color: #F3DDA6; }
.ift .ift-glass{
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .55);
}
.ift .ift-sw{ flex: none; width: 10px; height: 10px; border-radius: 3px; }
.ift .ift-center-head{ display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; max-width: 820px; margin: 0 auto; }

/* ---------- Hero ---------- */
.ift .ift-hero{
  position: relative;
  padding: 88px 0 104px;
  background:
    radial-gradient(55% 60% at 88% 8%, rgba(0, 180, 240, .14), rgba(0, 180, 240, 0) 70%),
    radial-gradient(45% 55% at 4% 70%, rgba(108, 194, 74, .10), rgba(108, 194, 74, 0) 70%),
    var(--ift-soft);
  border-bottom: 1px solid var(--ift-line);
  overflow: hidden;
}
.ift .ift-hero__head{ display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; max-width: 980px; }
.ift .ift-eyebrow{ display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid var(--ift-line); border-radius: 999px; background: rgba(255, 255, 255, .7); font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ift-muted); }
.ift .ift-dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--ift-accent); }
.ift .ift-lead{ font-size: 18.5px; color: var(--ift-text); max-width: 720px; }
.ift .ift-sublead{ font-size: 16px; color: var(--ift-muted); max-width: 720px; }
.ift .ift-hero .ift-actions{ justify-content: center; margin-top: 6px; }

/* ---------- Carousel ---------- */
.ift .ift-carousel{
  position: relative;
  margin-top: 64px;
  border-radius: 28px;
  overflow: hidden;
  color: #FFFFFF;
  background: #081A30;
  box-shadow: 0 1px 0 rgba(11, 18, 32, .04), 0 50px 90px -40px rgba(10, 37, 64, .55);
  isolation: isolate;
}
.ift .ift-carousel__viewport{ display: grid; touch-action: pan-y; }
.ift .ift-slide{
  grid-area: 1 / 1;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 48px;
  padding: 60px 56px 36px;
  min-height: 460px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility 0s linear .7s;
}
.ift .ift-slide.is-active{ opacity: 1; visibility: visible; transition: opacity .7s ease, visibility 0s; z-index: 1; }
.ift .ift-slide::before{ content: ''; position: absolute; inset: 0; z-index: -1; }
.ift .ift-slide::after{ content: ''; position: absolute; inset: 0; z-index: -1; background-image: var(--ift-star-light); background-size: 72px 72px; opacity: .06; -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 100%); mask-image: linear-gradient(100deg, transparent 30%, #000 100%); }
.ift .ift-slide--stock::before{ background: radial-gradient(60% 80% at 100% 0%, rgba(0, 150, 255, .5), transparent 62%), radial-gradient(50% 70% at 0% 100%, rgba(47, 107, 255, .28), transparent 62%), linear-gradient(140deg, #071B33 0%, #0B3A6E 100%); }
.ift .ift-slide--faraid::before{ background: radial-gradient(60% 80% at 100% 0%, rgba(40, 190, 150, .42), transparent 62%), radial-gradient(50% 70% at 0% 100%, rgba(232, 200, 119, .16), transparent 62%), linear-gradient(140deg, #06231F 0%, #0B4A40 100%); }
.ift .ift-slide--zakat::before{ background: radial-gradient(60% 80% at 100% 0%, rgba(232, 200, 119, .34), transparent 62%), radial-gradient(50% 70% at 0% 100%, rgba(0, 150, 255, .22), transparent 62%), linear-gradient(140deg, #0A1A33 0%, #152E57 100%); }
.ift .ift-slide__copy{ display: flex; flex-direction: column; align-items: flex-start; gap: 18px; transition: transform .8s var(--ift-ease), opacity .8s ease; }
.ift .ift-slide__visual{ min-width: 0; transition: transform .9s var(--ift-ease), opacity .9s ease; }
.ift.ift-js .ift-slide:not(.is-active) .ift-slide__copy{ transform: translateX(-28px); opacity: 0; }
.ift.ift-js .ift-slide:not(.is-active) .ift-slide__visual{ transform: translateX(36px) scale(.97); opacity: 0; }
.ift .ift-slide__count{ display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.ift .ift-slide__count b{ color: #FFFFFF; }
.ift .ift-slide__count i{ width: 28px; height: 1px; background: rgba(255, 255, 255, .4); }
.ift .ift-slide__title{ font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -.035em; color: #FFFFFF; }
.ift .ift-slide__text{ font-size: 17px; color: rgba(255, 255, 255, .84); max-width: 460px; }
.ift .ift-slide .ift-btn{ margin-top: 8px; }

.ift .ift-carousel__bar{ position: relative; z-index: 2; display: flex; align-items: center; gap: 24px; padding: 8px 56px 32px; }
.ift .ift-carousel__tabs{ flex: 1; min-width: 0; display: flex; gap: 14px; }
.ift .ift-ctab{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 8px 0; text-align: left; color: rgba(255, 255, 255, .6); transition: color .3s ease; }
.ift .ift-ctab:hover, .ift .ift-ctab.is-active{ color: #FFFFFF; }
.ift .ift-ctab__track{ display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.ift .ift-ctab__track i{ display: block; height: 100%; width: 100%; border-radius: 3px; background: #FFFFFF; transform: scaleX(0); transform-origin: 0 50%; }
.ift .ift-ctab.is-active .ift-ctab__track i{ transform: scaleX(1); }
.ift .ift-carousel.is-playing .ift-ctab.is-active .ift-ctab__track i{ animation: ift-progress var(--ift-interval, 6500ms) linear both; }
.ift .ift-ctab__name{ font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ift .ift-carousel__ctrl{ flex: none; display: flex; gap: 8px; }
.ift .ift-cbtn{ display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); color: #FFFFFF; transition: background-color .25s ease, border-color .25s ease, transform .25s ease; }
.ift .ift-cbtn:hover{ background: #FFFFFF; border-color: #FFFFFF; color: var(--ift-ink); transform: translateY(-2px); }
.ift .ift-cbtn__play{ display: none; }
.ift .ift-cbtn[aria-pressed="true"] .ift-cbtn__play{ display: inline-flex; }
.ift .ift-cbtn[aria-pressed="true"] .ift-cbtn__pause{ display: none; }
.ift .ift-cbtn__pause{ display: inline-flex; }

/* Slide illustrations */
.ift .ift-sv{ position: relative; height: 340px; }
.ift .ift-sv small{ display: block; font-size: 11.5px; letter-spacing: .04em; color: rgba(255, 255, 255, .7); }
.ift .ift-sv b{ font-family: var(--ift-display); }
.ift .ift-sv__main{ position: absolute; left: 4%; right: 10%; top: 52px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.ift .ift-sv__row{ display: flex; align-items: center; gap: 12px; }
.ift .ift-sv__logo{ display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #2F6BFF, #00B4F0); font-family: var(--ift-display); font-size: 13px; font-weight: 600; }
.ift .ift-sv__name{ flex: 1; min-width: 0; line-height: 1.3; }
.ift .ift-sv__name b{ display: block; font-size: 15px; }
.ift .ift-sv__chart{ width: 100%; height: 110px; }
.ift .ift-sv__meters{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: 12px; color: rgba(255, 255, 255, .78); }
.ift .ift-sv__meters div{ display: flex; flex-direction: column; gap: 6px; }
.ift .ift-sv__meter{ display: block; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.ift .ift-sv__meter i{ display: block; height: 100%; width: var(--w); border-radius: 6px; background: linear-gradient(90deg, #3FB6FF, #7CE0A3); }
.ift .ift-sv__chip{ position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; line-height: 1.3; animation: ift-float 7s ease-in-out infinite; }
.ift .ift-sv__chip b{ display: block; font-size: 14px; }
.ift .ift-sv__chip--a{ right: 0; top: -10px; }
.ift .ift-sv__chip--b{ left: -8px; bottom: -54px; animation: none; }
.ift .ift-ring{ transition: stroke-dasharray 1.4s var(--ift-ease) .3s; }
.ift.ift-js .ift-slide:not(.is-active) .ift-ring{ stroke-dasharray: 0 100; }

.ift .ift-sv__tree{ position: absolute; left: 0; top: 10px; width: 78%; height: auto; max-height: 100%; }
.ift .ift-sv__nodes text{ fill: #DFFBF1; font-family: var(--ift-body); font-size: 11.5px; font-weight: 600; text-anchor: middle; }
.ift .ift-sv__shares{ position: absolute; right: 0; bottom: 18px; width: 48%; min-width: 190px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; animation: ift-float 8s ease-in-out infinite; }
.ift .ift-sv__shares b{ font-size: 15px; }
.ift .ift-sv__stack{ display: flex; gap: 3px; height: 10px; }
.ift .ift-sv__stack i{ width: var(--w); background: var(--c); border-radius: 3px; }

.ift .ift-sv--zakat{ display: flex; align-items: center; gap: 14px; }
.ift .ift-sv__sheet{ flex: 1 1 0; min-width: 0; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.ift .ift-sv__line{ display: block; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.ift .ift-sv__line i{ display: block; height: 100%; width: var(--w); border-radius: 6px; background: linear-gradient(90deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .25)); }
.ift .ift-sv__line--neg i{ background: linear-gradient(90deg, #E8C877, rgba(232, 200, 119, .4)); }
.ift .ift-sv__arrow{ flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ift-gold); color: #1F1703; animation: ift-nudge 2.4s ease-in-out infinite; }
.ift .ift-sv__result{ flex: 1.1 1 0; min-width: 0; position: relative; padding: 22px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; overflow: hidden; border-color: rgba(232, 200, 119, .42); }
.ift .ift-sv__result b{ font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; }
.ift .ift-sv__donut{ position: absolute; right: -28px; bottom: -34px; width: 120px; height: 120px; opacity: .55; }

/* ---------- Sticky section nav ---------- */
.ift .ift-tools{ position: relative; scroll-margin-top: var(--ift-top); }
.ift .ift-subnav{ position: sticky; top: calc(var(--ift-top) + 12px); z-index: 50; height: 0; }
.ift .ift-subnav__inner{
  position: relative;
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 0 auto;
  transform: translateY(16px);
  padding: 6px;
  border: 1px solid var(--ift-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 36px -20px rgba(10, 37, 64, .4);
  overflow: hidden;
}
.ift .ift-subnav ul{ display: flex; gap: 4px; }
.ift .ift-subnav__link{ display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ift-muted); white-space: nowrap; transition: background-color .3s ease, color .3s ease; }
.ift .ift-subnav__link b{ font-family: var(--ift-display); font-size: 12px; opacity: .7; }
.ift .ift-subnav__link:hover{ color: var(--ift-ink); background: var(--ift-soft); }
.ift .ift-subnav__link.is-active{ color: #FFFFFF; background: var(--ift-ink); }
.ift .ift-subnav__link--stock.is-active{ background: linear-gradient(120deg, #0B4F9C, #0A72D1); }
.ift .ift-subnav__link--faraid.is-active{ background: var(--ift-faraid); }
.ift .ift-subnav__link--zakat.is-active{ background: #12284A; color: var(--ift-gold); }
.ift .ift-subnav__progress{ position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px; background: transparent; }
.ift .ift-subnav__progress i{ display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #0B4F9C, #0089D8, #2E9E5B); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Tool sections ---------- */
.ift .ift-tool{ position: relative; padding: 136px 0 128px; scroll-margin-top: var(--ift-top); overflow: hidden; }
.ift .ift-tool--stock{ --ift-tool: var(--ift-stock); background: #FFFFFF; }
.ift .ift-tool--faraid{ --ift-tool: var(--ift-faraid); background: linear-gradient(180deg, #F1F8F4 0%, #FBF8EF 100%); }
.ift .ift-tool--zakat{
  --ift-tool: var(--ift-gold);
  color: #FFFFFF;
  background:
    radial-gradient(50% 50% at 100% 0%, rgba(232, 200, 119, .16), rgba(232, 200, 119, 0) 62%),
    radial-gradient(50% 60% at 0% 100%, rgba(0, 150, 255, .16), rgba(0, 150, 255, 0) 62%),
    linear-gradient(160deg, #071B33 0%, #0B2D50 55%, #0C3762 100%);
}
.ift .ift-tool--zakat .ift-label b{ color: #1F1703; }

/* Feature cards (stock) */
.ift .ift-fgrid{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ift .ift-fcard{ display: flex; flex-direction: column; gap: 12px; padding: 28px 26px; border: 1px solid var(--ift-line); border-radius: 18px; background: #FFFFFF; transition: transform .35s var(--ift-ease), box-shadow .35s ease, border-color .35s ease, opacity .7s ease; }
.ift .ift-fcard:hover{ transform: translateY(-6px); border-color: #C9DCF5; box-shadow: 0 28px 50px -30px rgba(11, 79, 156, .45); }
.ift .ift-fcard__ico{ display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; background: #EAF3FF; color: var(--ift-stock); margin-bottom: 8px; }
.ift .ift-fcard h3{ font-size: 18px; letter-spacing: -.015em; line-height: 1.3; color: var(--ift-ink); }
.ift .ift-fcard p{ font-size: 14.5px; color: var(--ift-muted); }

/* ---------- Tool 1: stock ---------- */
.ift .ift-stock__grid{ display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); gap: 64px; align-items: center; }
.ift .ift-stock__copy{ display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.ift .ift-stock__copy .ift-quote{ margin-top: 6px; }
.ift .ift-dash{
  position: relative;
  border-radius: 22px;
  color: #FFFFFF;
  background: linear-gradient(160deg, #0A1E3A 0%, #0B2D50 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 50px 90px -40px rgba(10, 37, 64, .65), 0 0 0 8px rgba(11, 95, 192, .06);
  isolation: isolate;
}
.ift .ift-dash::before{ content: ''; position: absolute; inset: -40px -30px auto auto; width: 260px; height: 260px; z-index: -1; background: radial-gradient(closest-side, rgba(0, 150, 255, .35), transparent); filter: blur(10px); }
.ift .ift-dash__bar{ display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ift .ift-dash__dots{ display: flex; gap: 6px; }
.ift .ift-dash__dots i{ width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.ift .ift-dash__title{ flex: 1; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.ift .ift-dash__body{ display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.ift .ift-dash__company{ display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ift .ift-dash__logo{ display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #2F6BFF, #00B4F0); font-family: var(--ift-display); font-size: 14px; font-weight: 600; }
.ift .ift-dash__name{ flex: 1 1 160px; min-width: 0; line-height: 1.35; }
.ift .ift-dash__name b{ display: block; font-family: var(--ift-display); font-size: 16px; }
.ift .ift-dash__name small{ font-size: 12px; color: rgba(255, 255, 255, .62); }
.ift .ift-dash__name small span{ color: #9BD3FF; font-weight: 600; }
.ift .ift-dash__status{ display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(124, 224, 163, .14); color: #9BEBBB; font-size: 12.5px; font-weight: 500; }
.ift .ift-dash__status i{ width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(124, 224, 163, .18); }
.ift .ift-seg{ display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.ift .ift-seg button{ flex: 1 1 auto; min-height: 36px; padding: 8px 12px; white-space: nowrap; border-radius: 9px; font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, .7); transition: background-color .25s ease, color .25s ease; }
.ift .ift-seg button:hover{ color: #FFFFFF; }
.ift .ift-seg button[aria-pressed="true"]{ background: #FFFFFF; color: var(--ift-ink); }
.ift .ift-rule{ display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(91, 184, 255, .28); background: rgba(47, 155, 255, .1); color: #9BD3FF; }
.ift .ift-rule svg{ margin-top: 2px; }
.ift .ift-rule span{ display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.4; }
.ift .ift-rule small{ font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.ift .ift-rule b{ font-family: var(--ift-display); font-size: 14.5px; color: #FFFFFF; }
.ift .ift-rule em{ font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .7); }
.ift .ift-dash__grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ift .ift-panel{ display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); transition: background-color .3s ease, border-color .3s ease; }
.ift .ift-panel:hover{ background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); }
.ift .ift-panel--chart, .ift .ift-panel--steps{ grid-column: 1 / -1; }
.ift .ift-panel__head{ display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12px; letter-spacing: .04em; color: rgba(255, 255, 255, .62); }
.ift .ift-panel__head span{ text-transform: uppercase; }
.ift .ift-up{ color: #9BEBBB; font-family: var(--ift-display); font-size: 14px; letter-spacing: 0; }
.ift .ift-chart{ width: 100%; height: 110px; }
.ift .ift-chart, .ift .ift-sv__chart{ clip-path: inset(0 0 0 0); transition: clip-path 1.8s var(--ift-ease) .2s; }
.ift.ift-js .ift-dash:not(.is-in) .ift-chart, .ift.ift-js .ift-slide:not(.is-active) .ift-sv__chart{ clip-path: inset(0 100% 0 0); }
.ift .ift-split{ display: flex; gap: 3px; height: 12px; }
.ift .ift-split i{ width: var(--w); min-width: 6px; border-radius: 4px; background: linear-gradient(90deg, #2F9BFF, #5BD0C0); }
.ift .ift-split i + i{ background: #FFBE5C; }
.ift .ift-legend{ display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: rgba(255, 255, 255, .8); }
.ift .ift-legend li{ display: flex; align-items: center; gap: 8px; }
.ift .ift-legend span{ flex: 1; min-width: 0; }
.ift .ift-sw--ok{ background: #3FB6FF; }
.ift .ift-sw--warn{ background: #FFBE5C; }
.ift .ift-panel__foot{ display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: 11.5px; line-height: 1.4; color: rgba(255, 255, 255, .58); }
.ift .ift-markkey{ flex: none; width: 2px; height: 14px; border-radius: 2px; background: #FFFFFF; }
.ift .ift-meter{ display: flex; flex-direction: column; gap: 8px; }
.ift .ift-meter__top{ display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12.5px; color: rgba(255, 255, 255, .8); }
.ift .ift-meter__top b{ font-family: var(--ift-display); font-size: 14px; color: #FFFFFF; font-variant-numeric: tabular-nums; }
.ift .ift-meter__track{ position: relative; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .12); }
.ift .ift-meter__fill{ position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 8px; background: linear-gradient(90deg, #2F9BFF, #5BD0C0); transition: width .8s var(--ift-ease); }
.ift.ift-js .ift-dash:not(.is-in) .ift-meter__fill{ width: 0; }
.ift .ift-meter__mark{ position: absolute; top: -4px; bottom: -4px; left: var(--at); width: 2px; border-radius: 2px; background: #FFFFFF; }
.ift .ift-proc{ display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; counter-reset: none; }
.ift .ift-proc li{ position: relative; display: flex; flex-direction: column; gap: 8px; font-size: 12px; line-height: 1.35; color: rgba(255, 255, 255, .88); }
.ift .ift-proc li:not(:last-child)::after{ content: ''; position: absolute; left: 30px; right: -6px; top: 11px; height: 1px; background: rgba(255, 255, 255, .22); }
.ift .ift-proc i{ display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(91, 184, 255, .2); color: #9BD3FF; font-family: var(--ift-display); font-size: 11.5px; font-weight: 600; }
.ift .ift-proc b{ display: block; font-weight: 500; }
.ift .ift-proc small{ display: block; margin-top: 2px; font-size: 11px; color: #FFCF8A; }
.ift .ift-dash figcaption{ padding: 0 20px 18px; font-size: 12px; color: rgba(255, 255, 255, .55); }

/* ---------- Tool 2: faraid ---------- */
.ift .ift-faraid__top{ display: flex; flex-direction: column; gap: 44px; }
.ift .ift-fhero{ position: relative; display: flex; align-items: center; min-height: 420px; padding: 56px 56px 96px; border-radius: 28px; overflow: hidden; color: #FFFFFF; background: linear-gradient(120deg, #06231F 0%, #0B4A40 55%, #14806A 100%); box-shadow: 0 40px 80px -50px rgba(14, 124, 102, .7); }
.ift .ift-fhero__media{ position: absolute; inset: 0; }
.ift .ift-fhero__media img{ width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 75% 30%; display: block; border: 0; border-radius: 0; }
.ift .ift-fhero__media::after{ content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 35, 31, .94) 0%, rgba(6, 35, 31, .78) 38%, rgba(6, 35, 31, .12) 78%), linear-gradient(0deg, rgba(6, 35, 31, .45), transparent 45%); }
.ift .ift-fhero__art{ position: absolute; inset: 0; width: 100%; height: 100%; }
.ift .ift-fhero__tag{ position: absolute; z-index: 1; top: 20px; right: 20px; padding: 6px 12px; border-radius: 999px; border: 1px dashed rgba(255, 255, 255, .5); background: rgba(6, 35, 31, .45); font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.ift .ift-fhero__copy{ position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 560px; }
.ift .ift-fhero .ift-label b{ background: #FFFFFF; color: var(--ift-faraid); }
.ift .ift-faraid__grid{ display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 64px; align-items: start; }
.ift .ift-faraid__grid .ift-fam{ position: relative; z-index: 1; margin-top: -180px; }
.ift .ift-faraid__copy{ display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.ift .ift-fam{ border: 1px solid #DDEBE4; border-radius: 22px; background: #FFFFFF; box-shadow: 0 40px 80px -45px rgba(14, 124, 102, .5); overflow: hidden; }
.ift .ift-fam__bar{ display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #E3EFE9; background: #FAFCFB; }
.ift .ift-fam__tabs{ display: flex; flex-wrap: wrap; gap: 4px; }
.ift .ift-fam__tabs button{ min-height: 36px; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ift-muted); white-space: nowrap; transition: background-color .25s ease, color .25s ease; }
.ift .ift-fam__tabs button:hover{ color: var(--ift-ink); background: #EEF6F2; }
.ift .ift-fam__tabs button[aria-selected="true"]{ background: var(--ift-faraid); color: #FFFFFF; }
.ift .ift-fam__panel{ display: flex; flex-direction: column; gap: 14px; height: 456px; padding: 20px 22px 16px; }
.ift .ift-fam__panel[hidden]{ display: none; }
.ift .ift-fam figcaption{ padding: 12px 22px 14px; border-top: 1px solid #E3EFE9; font-size: 12px; color: var(--ift-muted); }
.ift .ift-fam__foot{ margin-top: auto; font-size: 12.5px; color: var(--ift-muted); }
.ift .ift-family__canvas{ --av: 44px; position: relative; flex: 1; min-height: 0; margin: 16px 10px 40px; }
.ift .ift-family__lines{ position: absolute; inset: 0; width: 100%; height: 100%; }
.ift .ift-family__lines path{ stroke: #9CCFBE; stroke-width: 2; stroke-dasharray: 5 6; animation: ift-dash 1.4s linear infinite; }
.ift .ift-node{
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  transform: translate(-50%, calc(var(--av) / -2));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: max-content;
  text-align: center;
}
.ift .ift-node__av{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--av);
  height: var(--av);
  border-radius: 50%;
  border: 2px solid #7CC98F;
  background: #EAF7EC;
  color: #1E7A34;
  box-shadow: 0 0 0 3px #FFFFFF;
  transition: transform .35s var(--ift-ease), background-color .3s ease, color .3s ease, box-shadow .3s ease, opacity .3s ease;
}
.ift .ift-node__cap{ display: flex; align-items: center; gap: 6px; line-height: 1.2; padding: 1px 4px; border-radius: 6px; background: rgba(255, 255, 255, .85); }
.ift .ift-node__cap b{ font-size: 12.5px; color: var(--ift-ink); }
.ift .ift-node__cap small{ padding: 1px 7px; border-radius: 999px; border: 1px solid #CFE5DC; background: #FFFFFF; font-size: 11.5px; font-weight: 600; color: var(--ift-faraid); font-variant-numeric: tabular-nums; }
.ift .ift-node--deceased .ift-node__av{ border-color: #F29CA3; background: #FDECEE; color: #B5303D; box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 7px rgba(242, 156, 163, .25); }
.ift .ift-node--out .ift-node__av{ border-color: #B9C2CF; background: #F1F3F6; color: #7A8597; }
.ift .ift-node--out .ift-node__cap b{ color: var(--ift-muted); }
.ift .ift-node--out .ift-node__cap small{ border-color: var(--ift-line); color: var(--ift-muted); font-weight: 500; }
.ift button.ift-node:hover .ift-node__av, .ift button.ift-node.is-active .ift-node__av{ transform: scale(1.12); box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 7px rgba(30, 158, 126, .2); }
.ift button.ift-node--heir.is-active .ift-node__av{ background: var(--ift-faraid); border-color: var(--ift-faraid); color: #FFFFFF; }
.ift button.ift-node--out.is-active .ift-node__av{ background: #7A8597; border-color: #7A8597; color: #FFFFFF; box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 7px rgba(122, 133, 151, .2); }
.ift .ift-family.has-active button.ift-node:not(.is-active) .ift-node__av, .ift .ift-fam.has-active button.ift-node:not(.is-active) .ift-node__av{ opacity: .55; }
.ift .ift-family__why{ display: flex; align-items: center; min-height: 56px; padding: 8px 14px; border-radius: 12px; border: 1px dashed #BFDDD1; background: #F7FBF9; font-size: 13.5px; line-height: 1.45; color: var(--ift-text); }
.ift .ift-family__key{ display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--ift-muted); }
.ift .ift-family__key li{ display: inline-flex; align-items: center; gap: 7px; }
.ift .ift-key{ width: 11px; height: 11px; border-radius: 50%; }
.ift .ift-key--deceased{ background: #F29CA3; }
.ift .ift-key--heir{ background: #7CC98F; }
.ift .ift-key--out{ background: #B9C2CF; }
.ift .ift-seg-wife{ --c: #7CCDB6; }
.ift .ift-seg-father{ --c: #1E9E7E; }
.ift .ift-seg-mother{ --c: #0E7C66; }
.ift .ift-seg-son{ --c: #D9B25A; }
.ift .ift-stackbar{ display: flex; gap: 3px; height: 12px; flex: none; }
.ift .ift-stackbar i{ flex: var(--w) 1 0; background: var(--c); border-radius: 4px; transition: opacity .3s ease; }
.ift .ift-shares{ width: 100%; margin: 0; border: 0; border-collapse: collapse; font-size: 14px; background: none; }
.ift .ift-shares th, .ift .ift-shares td{ padding: 11px 8px; border: 0; border-bottom: 1px solid #E8F0EC; background: none; text-align: right; font-weight: 400; color: var(--ift-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ift .ift-shares th:first-child{ text-align: left; }
.ift .ift-shares thead th{ font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ift-muted); }
.ift .ift-shares tbody th{ display: flex; align-items: center; gap: 10px; font-weight: 500; }
.ift .ift-shares .ift-sw{ background: var(--c); }
.ift .ift-shares tbody td:nth-child(2){ font-family: var(--ift-display); font-weight: 600; }
.ift .ift-shares tfoot th, .ift .ift-shares tfoot td{ border-bottom: 0; font-weight: 600; }
.ift .ift-shares tbody tr{ transition: background-color .25s ease; }
.ift .ift-shares tbody tr:hover, .ift .ift-shares tbody tr.is-active{ background: #EAF6F1; }
.ift .ift-fsteps{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(5, auto); gap: 10px 20px; }
.ift .ift-fsteps li{ display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; border: 1px solid #E3EFE9; background: #FAFCFB; font-size: 13.5px; line-height: 1.3; }
.ift .ift-fsteps i{ flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ift-faraid); color: #FFFFFF; font-family: var(--ift-display); font-size: 12px; font-weight: 600; }
.ift .ift-fsteps b{ display: block; font-weight: 500; color: var(--ift-ink); }
.ift .ift-fsteps small{ display: block; font-size: 11.5px; color: var(--ift-gold-ink); }
.ift .ift-fsteps li.is-opt{ border-style: dashed; background: #FFFCF3; border-color: #EBD9A8; }
.ift .ift-fsteps li.is-opt i{ background: #D9B25A; color: #3B2C07; }
.ift .ift-freport{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.ift .ift-freport__doc{ padding: 16px; border-radius: 14px; border: 1px solid #E3EFE9; border-top: 3px solid var(--ift-faraid); background: #FFFFFF; box-shadow: 0 14px 30px -22px rgba(10, 37, 64, .5); }
.ift .ift-freport__title{ display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-family: var(--ift-display); font-size: 16px; font-weight: 600; color: var(--ift-ink); }
.ift .ift-freport__title svg{ color: var(--ift-faraid); }
.ift .ift-freport ol{ counter-reset: r; display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--ift-text); }
.ift .ift-freport ol li{ counter-increment: r; display: flex; gap: 8px; }
.ift .ift-freport ol li::before{ content: counter(r) '.'; font-weight: 600; color: var(--ift-faraid); }
.ift .ift-freport__sum{ display: flex; flex-direction: column; font-size: 13px; }
.ift .ift-freport__sum div{ display: flex; justify-content: space-between; gap: 10px; padding: 9px 2px; border-bottom: 1px solid #E8F0EC; }
.ift .ift-freport__sum dt{ color: var(--ift-text); font-weight: 400; }
.ift .ift-freport__sum dd{ color: var(--ift-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ift .ift-freport__sum .is-total{ border-bottom: 0; }
.ift .ift-freport__sum .is-total dt, .ift .ift-freport__sum .is-total dd{ font-weight: 600; color: var(--ift-ink); }

.ift .ift-rail{ position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.ift .ift-rail::before{ content: ''; position: absolute; left: 22px; right: calc((100% - 112px) / 5 - 46px); top: 22px; height: 2px; background: repeating-linear-gradient(90deg, #A9D6C6 0 6px, transparent 6px 12px); }
.ift .ift-rail__item{ position: relative; display: flex; flex-direction: column; gap: 10px; }
.ift .ift-rail__ico{ display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 6px; border-radius: 50%; border: 2px solid var(--ift-faraid-2); background: #FFFFFF; color: var(--ift-faraid); box-shadow: 0 0 0 6px #F3F8F2; transition: background-color .3s ease, color .3s ease, transform .35s var(--ift-ease); }
.ift .ift-rail__item:hover .ift-rail__ico{ background: var(--ift-faraid); color: #FFFFFF; transform: translateY(-4px); }
.ift .ift-rail h3{ font-size: 16px; letter-spacing: -.015em; line-height: 1.3; color: var(--ift-ink); }
.ift .ift-rail p{ font-size: 14px; color: var(--ift-muted); }
.ift .ift-band--center{ display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }

/* ---------- Tool 3: zakat ---------- */
.ift .ift-zakat__head{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 72px; align-items: start; }
.ift .ift-zakat__title{ display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.ift .ift-zakat__intro{ display: flex; flex-direction: column; gap: 16px; }
.ift .ift-flow{ padding: 26px; border-radius: 28px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .045); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .7); }
.ift .ift-flow__top{ display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.ift .ift-flow__name{ font-family: var(--ift-display); font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.ift .ift-flow__steps{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px; }
.ift .ift-step{ position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px 20px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(8, 26, 48, .55); transition: transform .35s var(--ift-ease), border-color .3s ease; }
.ift .ift-step:hover{ transform: translateY(-4px); border-color: rgba(255, 255, 255, .28); }
.ift .ift-step:not(:last-child)::after{
  content: '';
  position: absolute;
  top: 50%;
  right: -31px;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background: var(--ift-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F1703' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: 0 0 0 5px rgba(232, 200, 119, .16);
  animation: ift-pulse 2.4s ease-in-out infinite;
  z-index: 1;
}
.ift .ift-step:nth-child(2)::after{ animation-delay: .4s; }
.ift .ift-step:nth-child(3)::after{ animation-delay: .8s; }
.ift .ift-step__n{ font-family: var(--ift-display); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; color: var(--ift-gold); }
.ift .ift-step h3{ font-size: 16.5px; letter-spacing: -.015em; line-height: 1.3; color: #FFFFFF; min-height: 2.6em; }
.ift .ift-file{ display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; border: 1px dashed rgba(255, 255, 255, .28); font-size: 12.5px; color: rgba(255, 255, 255, .86); }
.ift .ift-file span{ flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ift .ift-file svg:last-child{ color: #9BEBBB; }
.ift .ift-rows{ display: flex; flex-direction: column; font-size: 13px; }
.ift .ift-rows div{ display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ift .ift-rows div:last-child{ border-bottom: 0; }
.ift .ift-rows dt{ color: rgba(255, 255, 255, .72); font-weight: 400; }
.ift .ift-rows dd{ color: #FFFFFF; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ift .ift-rows .is-neg dd{ color: #FFCF8A; }
.ift .ift-water{ display: flex; flex-direction: column; gap: 5px; margin-top: auto; }
.ift .ift-water i{ display: block; height: 8px; width: var(--w); margin-left: var(--o, 0%); border-radius: 4px; background: rgba(255, 255, 255, .5); transform-origin: 0 50%; transition: transform 1s var(--ift-ease) .2s; }
.ift .ift-water i.is-neg{ background: #FFBE5C; }
.ift .ift-water i.is-sum{ background: linear-gradient(90deg, #3FB6FF, #7CE0A3); }
.ift.ift-js .ift-flow:not(.is-in) .ift-water i, .ift.ift-js .ift-flow:not(.is-in) .ift-ratio i{ transform: scaleX(0); }
.ift .ift-figure{ display: flex; align-items: baseline; gap: 8px; font-family: var(--ift-display); font-size: clamp(28px, 2.7vw, 36px); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; color: #FFFFFF; font-variant-numeric: tabular-nums; }
.ift .ift-figure small{ font-size: 14px; font-weight: 500; letter-spacing: 0; color: rgba(255, 255, 255, .65); }
.ift .ift-figure--gold{ color: var(--ift-gold); }
.ift .ift-ratio{ height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.ift .ift-ratio i{ display: block; height: 100%; width: var(--w); border-radius: 8px; background: linear-gradient(90deg, #3FB6FF, #7CE0A3); transform-origin: 0 50%; transition: transform 1.2s var(--ift-ease) .3s; }
.ift .ift-step__hint{ margin-top: auto; font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.ift .ift-step__rate{ display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: rgba(232, 200, 119, .14); font-size: 13px; font-weight: 500; color: #F3DDA6; font-variant-numeric: tabular-nums; }
.ift .ift-step--result{ border-color: rgba(232, 200, 119, .5); background: linear-gradient(160deg, rgba(232, 200, 119, .16), rgba(8, 26, 48, .55) 70%); }
.ift .ift-flow figcaption{ margin-top: 18px; font-size: 12px; color: rgba(255, 255, 255, .55); }

.ift .ift-zgrid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ift .ift-zcard{ display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); transition: transform .35s var(--ift-ease), background-color .3s ease, border-color .3s ease, opacity .7s ease; }
.ift .ift-zcard:hover{ transform: translateY(-6px); background: rgba(255, 255, 255, .09); border-color: rgba(232, 200, 119, .45); }
.ift .ift-zcard__ico{ display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 8px; border-radius: 13px; background: rgba(232, 200, 119, .14); color: var(--ift-gold); }
.ift .ift-zcard h3{ font-size: 18px; letter-spacing: -.015em; line-height: 1.3; color: #FFFFFF; }
.ift .ift-zcard p{ font-size: 14.5px; color: var(--ift-light-text); }
.ift .ift-zcard--cta{ justify-content: space-between; align-items: flex-start; gap: 18px; border-color: rgba(232, 200, 119, .4); background: linear-gradient(150deg, rgba(232, 200, 119, .18), rgba(255, 255, 255, .04)); }
.ift .ift-zcard--cta .ift-quote{ font-size: 17px; }
.ift .ift-zcard--cta .ift-note{ font-size: 13px; color: var(--ift-light-label); }

/* ---------- Video ---------- */
.ift .ift-demo{ display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px 64px; align-items: center; }
.ift .ift-demo__copy{ display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.ift .ift-demo__copy p{ font-size: 16.5px; color: var(--ift-text); max-width: 460px; }
.ift .ift-tool--zakat .ift-demo__copy p{ color: var(--ift-light-text); }
.ift .ift-tool--zakat .ift-demo__copy .ift-label{ color: var(--ift-light-label); }
.ift .ift-demo--split-reverse .ift-demo__copy{ order: 2; }
.ift .ift-demo--split-reverse{ grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.ift .ift-demo--stacked{ grid-template-columns: minmax(0, 1fr); justify-items: center; }
.ift .ift-demo--stacked .ift-demo__copy{ align-items: center; text-align: center; }
.ift .ift-demo--stacked .ift-demo__copy p{ max-width: 620px; }
.ift .ift-demo--stacked .ift-video{ width: 100%; max-width: 820px; }
.ift .ift-video{ --v1: #0B3A6E; --v2: #071B33; --v3: rgba(0, 150, 255, .55); --vp: var(--ift-stock); position: relative; }
.ift .ift-video--faraid{ --v1: #0B4A40; --v2: #06231F; --v3: rgba(40, 190, 150, .5); --vp: var(--ift-faraid); }
.ift .ift-video--zakat{ --v1: #1B3A6B; --v2: #0A1A33; --v3: rgba(232, 200, 119, .42); --vp: var(--ift-gold-ink); }
.ift .ift-video__frame{ position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #071B33; box-shadow: 0 50px 90px -45px rgba(10, 37, 64, .7), 0 0 0 1px rgba(255, 255, 255, .08); }
.ift .ift-video--zakat .ift-video__frame{ box-shadow: 0 50px 90px -45px rgba(0, 0, 0, .8), 0 0 0 1px rgba(232, 200, 119, .35); }
.ift .ift-video__poster[hidden]{ display: none; }
.ift .ift-video__frame iframe, .ift .ift-video__frame video{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000000; }
.ift .ift-video__poster{ position: absolute; inset: 0; width: 100%; height: 100%; display: block; color: #FFFFFF; text-align: left; background: radial-gradient(60% 80% at 100% 0%, var(--v3), transparent 62%), linear-gradient(140deg, var(--v2) 0%, var(--v1) 100%); }
.ift .ift-video__art{ position: absolute; inset: 0; background-image: var(--ift-star-light); background-size: 72px 72px; opacity: .08; -webkit-mask-image: linear-gradient(120deg, transparent 20%, #000 100%); mask-image: linear-gradient(120deg, transparent 20%, #000 100%); transition: transform 1.2s var(--ift-ease); }
.ift .ift-video__meta{ position: absolute; left: 28px; right: 28px; bottom: 24px; display: flex; flex-direction: column; gap: 4px; }
.ift .ift-video__kicker{ font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.ift .ift-video__title{ font-family: var(--ift-display); font-size: clamp(17px, 2vw, 24px); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.ift .ift-video__play{ position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #FFFFFF; color: var(--vp); box-shadow: 0 0 0 12px rgba(255, 255, 255, .14), 0 20px 40px -12px rgba(0, 0, 0, .6); transition: transform .35s var(--ift-ease), box-shadow .35s ease; }
.ift .ift-video__play svg{ margin-left: 4px; }
.ift .ift-video__play::after{ content: ''; position: absolute; inset: -12px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); animation: ift-ripple 2.6s ease-out infinite; }
.ift button.ift-video__poster:hover .ift-video__play{ transform: scale(1.08); box-shadow: 0 0 0 16px rgba(255, 255, 255, .2), 0 20px 40px -12px rgba(0, 0, 0, .6); }
.ift button.ift-video__poster:hover .ift-video__art{ transform: scale(1.06); }
.ift .ift-video__poster.is-placeholder .ift-video__play{ background: rgba(255, 255, 255, .16); color: #FFFFFF; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ift .ift-video__poster.is-placeholder .ift-video__play::after{ animation: none; opacity: .5; }
.ift .ift-video__soon{ position: absolute; top: 20px; right: 20px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(8, 26, 48, .5); font-size: 12px; font-weight: 500; letter-spacing: .04em; }

/* ---------- Closing ---------- */
.ift .ift-closing{ padding: 120px 0; background: #FFFFFF; }
.ift .ift-cta{
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 88px 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px 64px;
  color: #FFFFFF;
  background:
    radial-gradient(55% 90% at 100% 0%, rgba(0, 180, 240, .38), rgba(0, 180, 240, 0) 62%),
    radial-gradient(45% 70% at 0% 100%, rgba(108, 194, 74, .22), rgba(108, 194, 74, 0) 62%),
    linear-gradient(120deg, var(--ift-ink) 0%, #0B4F9C 58%, #0A66C2 100%);
}
.ift .ift-cta .ift-pattern{ opacity: .1; }
.ift .ift-cta__copy{ position: relative; flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.ift .ift-cta__copy h2{ font-size: clamp(30px, 4vw, 50px); line-height: 1.08; letter-spacing: -.04em; color: #FFFFFF; }
.ift .ift-cta__copy p{ font-size: 16.5px; color: rgba(255, 255, 255, .9); max-width: 600px; }
.ift .ift-cta__action{ position: relative; flex: 0 1 280px; display: flex; flex-direction: column; gap: 14px; }
.ift .ift-cta .ift-btn{ min-height: 56px; width: 100%; font-weight: 600; }
.ift .ift-disclaimer{ display: flex; gap: 12px; max-width: 880px; margin: 36px auto 0; font-size: 13.5px; color: var(--ift-muted); }
.ift .ift-disclaimer svg{ margin-top: 2px; color: var(--ift-accent); }

.ift .ift-toast{ position: fixed; left: 50%; bottom: 28px; z-index: 100000; max-width: calc(100vw - 32px); padding: 14px 22px; border-radius: 999px; background: #0B1220; color: #FFFFFF; font-size: 14.5px; box-shadow: 0 20px 40px -16px rgba(11, 18, 32, .6); transform: translate(-50%, 0); animation: ift-toast .35s var(--ift-ease) both; }
.ift .ift-toast[hidden]{ display: none; }

/* ---------- Motion ---------- */
@keyframes ift-rise{ from{ opacity: 0; transform: translateY(14px); } to{ opacity: 1; transform: none; } }
@keyframes ift-float{ 0%, 100%{ translate: 0 0; } 50%{ translate: 0 -8px; } }
@keyframes ift-nudge{ 0%, 100%{ translate: 0 0; } 50%{ translate: 5px 0; } }
@keyframes ift-progress{ from{ transform: scaleX(0); } to{ transform: scaleX(1); } }
@keyframes ift-dash{ to{ stroke-dashoffset: -11; } }
@keyframes ift-pulse{ 0%, 100%{ box-shadow: 0 0 0 5px rgba(232, 200, 119, .16); } 50%{ box-shadow: 0 0 0 10px rgba(232, 200, 119, .04); } }
@keyframes ift-ripple{ from{ transform: scale(1); opacity: .7; } to{ transform: scale(1.5); opacity: 0; } }
@keyframes ift-toast{ from{ opacity: 0; transform: translate(-50%, 12px); } to{ opacity: 1; transform: translate(-50%, 0); } }
.ift .ift-rise{ animation: ift-rise .9s var(--ift-ease) both; }
.ift .ift-rise--late{ animation-delay: .15s; }
/* Scroll reveal: content stays visible if JavaScript never runs. */
.ift.ift-js .ift-reveal{ opacity: 0; transform: translateY(26px); transition: opacity .7s ease var(--d, 0ms), transform .8s var(--ift-ease) var(--d, 0ms); }
.ift.ift-js .ift-reveal.is-in{ opacity: 1; transform: none; }
.ift.ift-js .ift-reveal.is-done{ transition: transform .35s var(--ift-ease), box-shadow .35s ease, border-color .35s ease, background-color .3s ease; }

@media (prefers-reduced-motion: reduce){
  .ift *, .ift *::before, .ift *::after{ animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .ift.ift-js .ift-reveal{ opacity: 1; transform: none; }
  .ift .ift-ctab.is-active .ift-ctab__track i{ transform: scaleX(1); }
}

/* ---------- Tablet ---------- */
@media (max-width: 1080px){
  .ift .ift-slide{ gap: 32px; padding: 48px 40px 28px; }
  .ift .ift-carousel__bar{ padding: 8px 40px 28px; }
  .ift .ift-stock__grid{ grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .ift .ift-fgrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ift .ift-faraid__grid{ grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .ift .ift-faraid__grid .ift-fam{ margin-top: 0; }
  .ift .ift-fhero{ min-height: 340px; padding: 48px 40px; }
  .ift .ift-rail{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .ift .ift-rail::before{ content: none; }
  .ift .ift-rail__item{ padding: 24px; border: 1px solid #DDEBE4; border-radius: 18px; background: #FFFFFF; }
  .ift .ift-rail__item:last-child{ grid-column: 1 / -1; }
  .ift .ift-rail__ico{ box-shadow: none; }
  .ift .ift-zakat__head{ grid-template-columns: minmax(0, 1fr); align-items: start; }
  .ift .ift-flow__steps{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
  .ift .ift-step:nth-child(2)::after{ top: auto; right: auto; bottom: -31px; left: 50%; margin: 0 0 0 -14px; rotate: 135deg; }
  .ift .ift-step h3{ min-height: 0; }
  .ift .ift-zgrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ift .ift-demo, .ift .ift-demo--split-reverse{ grid-template-columns: minmax(0, 1fr); }
  .ift .ift-demo--split-reverse .ift-demo__copy{ order: 0; }
}

/* ---------- Mobile ---------- */
@media (max-width: 782px){
  .ift .ift-stack{ gap: 56px; }
  .ift .ift-hero{ padding: 56px 0 72px; }
  .ift .ift-lead{ font-size: 17px; }
  .ift .ift-carousel{ margin-top: 44px; border-radius: 22px; }
  .ift .ift-slide{ grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 36px 24px 20px; min-height: 0; align-items: start; }
  .ift .ift-slide__text{ font-size: 16px; }
  .ift .ift-sv{ height: 262px; }
  .ift .ift-sv__main{ left: 0; right: 6%; top: 46px; padding: 16px; gap: 10px; }
  .ift .ift-sv__chip{ padding: 8px 12px; }
  .ift .ift-sv__chip--b{ display: none; }
  .ift .ift-sv__tree{ width: 86%; top: 0; }
  .ift .ift-sv__shares{ bottom: 0; padding: 12px 14px; min-width: 160px; }
  .ift .ift-sv__sheet{ padding: 16px; }
  .ift .ift-sv__result{ padding: 16px; }
  .ift .ift-sv__arrow{ width: 32px; height: 32px; }
  .ift .ift-carousel__bar{ flex-direction: column; align-items: stretch; gap: 14px; padding: 4px 24px 24px; }
  .ift .ift-carousel__ctrl{ justify-content: flex-end; }
  .ift .ift-ctab__name{ font-size: 12.5px; white-space: normal; line-height: 1.3; }
  .ift .ift-subnav{ top: calc(var(--ift-top) + 8px); }
  .ift .ift-subnav__inner{ width: calc(100% - 24px); transform: translateY(12px); }
  .ift .ift-subnav ul{ display: grid; grid-template-columns: 1.5fr 1fr 1fr; }
  .ift .ift-subnav__link{ justify-content: center; padding: 8px 10px; font-size: 13.5px; }
  .ift .ift-subnav__link b{ display: none; }
  .ift .ift-tool{ padding: 104px 0 88px; }
  .ift .ift-dash__grid{ grid-template-columns: minmax(0, 1fr); }
  .ift .ift-dash__body{ padding: 16px; }
  .ift .ift-sv__chart{ height: 70px; }
  .ift .ift-proc{ grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ift .ift-proc li{ flex-direction: row; align-items: center; gap: 12px; font-size: 13px; }
  .ift .ift-proc li:not(:last-child)::after{ left: 11px; right: auto; top: 26px; bottom: -10px; width: 1px; height: auto; }
  .ift .ift-seg button{ font-size: 12px; padding: 8px 10px; }
  .ift .ift-flow{ padding: 18px; border-radius: 22px; }
  .ift .ift-fhero{ min-height: 300px; padding: 64px 24px 32px; border-radius: 22px; align-items: flex-end; }
  .ift .ift-fhero__media::after{ background: linear-gradient(0deg, rgba(6, 35, 31, .94) 0%, rgba(6, 35, 31, .7) 50%, rgba(6, 35, 31, .2) 100%); }
  .ift .ift-fhero__tag{ top: 14px; right: 14px; font-size: 11px; }
  .ift .ift-fam__panel{ height: auto; min-height: 380px; padding: 16px 14px 14px; }
  .ift .ift-family__canvas{ --av: 40px; min-height: 230px; margin: 14px 4px 36px; }
  .ift .ift-node__cap{ flex-direction: column; gap: 2px; }
  .ift .ift-fam__bar{ align-items: flex-start; }
  .ift .ift-fam__bar .ift-chip{ display: none; }
  .ift .ift-fam__tabs button{ padding: 8px 11px; font-size: 13px; }
  .ift .ift-fsteps{ grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-template-rows: none; gap: 8px; }
  .ift .ift-freport{ grid-template-columns: minmax(0, 1fr); }
  .ift .ift-shares th, .ift .ift-shares td{ padding: 10px 4px; font-size: 13px; }
  .ift .ift-closing{ padding: 88px 0; }
  .ift .ift-cta{ padding: 56px 28px; border-radius: 22px; }
  .ift .ift-cta__action{ flex-basis: 100%; }
  .ift .ift-video__frame{ border-radius: 18px; }
  .ift .ift-video__play{ width: 60px; height: 60px; margin: -24px 0 0 -30px; box-shadow: 0 0 0 8px rgba(255, 255, 255, .14), 0 20px 40px -12px rgba(0, 0, 0, .6); }
  .ift .ift-video__play svg{ width: 24px; height: 24px; }
  .ift .ift-video__meta{ left: 18px; right: 18px; bottom: 16px; }
  .ift .ift-video__soon{ top: 12px; right: 12px; font-size: 11px; }
}
@media (max-width: 600px){
  .ift .ift-wrap{ padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .ift .ift-actions .ift-btn, .ift .ift-band--center .ift-btn, .ift .ift-slide .ift-btn{ width: 100%; }
  .ift .ift-fgrid, .ift .ift-rail, .ift .ift-zgrid{ grid-template-columns: minmax(0, 1fr); }
  .ift .ift-flow__steps{ grid-template-columns: minmax(0, 1fr); }
  .ift .ift-step:not(:last-child)::after{ top: auto; right: auto; bottom: -31px; left: 50%; margin: 0 0 0 -14px; rotate: 90deg; }
  .ift .ift-video__kicker{ display: none; }
}


/* =====================================================================
 * Theme v2: light, minimalist product-page style.
 * White page, soft grey panels, white floating cards, tight Inter
 * headings, squared-off black buttons. No background patterns.
 * These rules sit last so they restyle the components defined above.
 * ===================================================================== */
html body .ift{
  --ift-ink: #141414;
  --ift-text: #4F4F4F;
  --ift-muted: #6F6F6F;
  --ift-line: #E7E7E7;
  --ift-soft: #F2F2F2;
  --ift-accent: #056BEB;
  --ift-btn: #141414;
  --ift-btn-hover: #056BEB;
  --ift-stock: #056BEB;
  --ift-display: var(--ift-body);
  --ift-card-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 14px 30px -20px rgba(0, 0, 0, .28);
  background: #FFFFFF;
}
html body .ift h1, html body .ift h2, html body .ift h3{ letter-spacing: -.035em; }
.ift .ift-pattern, .ift .ift-slide::after, .ift .ift-video__art{ display: none; }
.ift .ift-h1{ font-size: clamp(36px, 4.6vw, 60px); letter-spacing: -.045em; line-height: 1.06; }
.ift .ift-h2{ font-size: clamp(28px, 3.3vw, 42px); letter-spacing: -.04em; line-height: 1.1; }
.ift .ift-h3{ letter-spacing: -.04em; }
.ift .ift-quote{ font-weight: 600; letter-spacing: -.025em; }

/* Pills and buttons */
.ift .ift-label{ gap: 8px; padding: 5px 12px 5px 6px; border: 1px solid currentColor; border-radius: 999px; color: var(--ift-tool, var(--ift-accent)); font-size: 12.5px; letter-spacing: -.01em; text-transform: none; }
.ift .ift-label b{ min-width: 26px; height: 20px; padding: 0 6px; font-size: 11px; }
.ift .ift-demo .ift-label{ padding-left: 12px; }
.ift .ift-label--light{ color: #FFFFFF; border-color: rgba(255, 255, 255, .55); }
.ift .ift-eyebrow{ padding: 5px 12px; border-color: var(--ift-accent); background: #FFFFFF; color: var(--ift-accent); font-size: 12.5px; letter-spacing: -.01em; text-transform: none; }
.ift .ift-btn{ min-height: 50px; padding: 13px 24px; border-radius: 12px; font-weight: 600; letter-spacing: -.01em; box-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 8px 16px -10px rgba(0, 0, 0, .4); }
.ift .ift-btn--outline{ border-color: #DCDCDC; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.ift .ift-btn--stock, .ift .ift-btn--faraid{ background: var(--ift-btn); }
.ift .ift-btn--stock:hover, .ift .ift-btn--stock:focus-visible{ background: var(--ift-stock); }
.ift .ift-btn--faraid:hover, .ift .ift-btn--faraid:focus-visible{ background: var(--ift-faraid); }
.ift .ift-chip{ letter-spacing: 0; text-transform: none; font-size: 12px; }

/* Hero: headline left, supporting copy right */
.ift .ift-hero{ padding: 72px 0 96px; background: #FFFFFF; border-bottom: 0; }
.ift .ift-hero__head{ display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; gap: 32px 72px; max-width: 1200px; text-align: left; }
.ift .ift-hero__main{ display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.ift .ift-hero__side{ display: flex; flex-direction: column; gap: 14px; }
.ift .ift-hero .ift-actions{ justify-content: flex-start; margin-top: 8px; }
.ift .ift-lead{ font-size: 17px; color: var(--ift-ink); }
.ift .ift-sublead{ font-size: 15.5px; }
.ift .ift-checklist{ display: flex; flex-direction: column; margin-top: 6px; border-top: 1px solid var(--ift-line); }
.ift .ift-checklist a{ display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--ift-line); font-size: 15.5px; font-weight: 500; color: var(--ift-ink); transition: color .25s ease, padding-left .3s var(--ift-ease); }
.ift .ift-checklist svg{ color: var(--ift-accent); }
.ift .ift-checklist a:hover{ color: var(--ift-accent); padding-left: 8px; }

/* Carousel: soft grey stage with white floating cards */
.ift .ift-carousel{ margin-top: 56px; border-radius: 24px; background: var(--ift-soft); color: var(--ift-ink); box-shadow: none; }
.ift .ift-slide--stock::before{ background: radial-gradient(55% 80% at 100% 0%, rgba(14, 130, 246, .2), transparent 62%); }
.ift .ift-slide--faraid::before{ background: radial-gradient(55% 80% at 100% 0%, rgba(30, 158, 126, .2), transparent 62%); }
.ift .ift-slide--zakat::before{ background: radial-gradient(55% 80% at 100% 0%, rgba(232, 200, 119, .38), transparent 62%); }
.ift .ift-slide__count{ color: var(--ift-muted); letter-spacing: -.01em; text-transform: none; }
.ift .ift-slide__count b{ color: var(--ift-ink); }
.ift .ift-slide__count i{ background: #C9C9C9; }
.ift .ift-slide__title{ color: var(--ift-ink); letter-spacing: -.04em; }
.ift .ift-slide__text{ color: var(--ift-muted); }
.ift .ift-slide .ift-btn--light{ background: var(--ift-btn); color: #FFFFFF; }
.ift .ift-slide .ift-btn--light:hover, .ift .ift-slide .ift-btn--light:focus-visible{ background: var(--ift-btn-hover); color: #FFFFFF; box-shadow: 0 14px 28px -14px rgba(11, 18, 32, .5); }
.ift .ift-ctab{ color: var(--ift-muted); }
.ift .ift-ctab:hover, .ift .ift-ctab.is-active{ color: var(--ift-ink); }
.ift .ift-ctab__track{ background: rgba(20, 20, 20, .12); }
.ift .ift-ctab__track i{ background: var(--ift-ink); }
.ift .ift-cbtn{ border-color: #DCDCDC; background: #FFFFFF; color: var(--ift-ink); border-radius: 12px; }
.ift .ift-cbtn:hover{ background: var(--ift-ink); border-color: var(--ift-ink); color: #FFFFFF; }
.ift .ift-glass{ background: #FFFFFF; border: 0; border-radius: 16px; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--ift-card-shadow); color: var(--ift-ink); }
.ift .ift-sv small{ color: var(--ift-muted); letter-spacing: 0; }
.ift .ift-sv__meters{ color: var(--ift-muted); }
.ift .ift-sv__meter, .ift .ift-sv__line{ background: rgba(20, 20, 20, .08); }
.ift .ift-sv__meter i{ background: linear-gradient(90deg, #0E82F6, #5BD0C0); }
.ift .ift-sv__chart path[stroke]{ stroke: #0E82F6; }
.ift .ift-sv__line i{ background: linear-gradient(90deg, rgba(20, 20, 20, .38), rgba(20, 20, 20, .14)); }
.ift .ift-pill--ok{ background: #E6F6EA; color: #1E7A34; }
.ift .ift-pill--gold{ background: #FBF1D6; color: var(--ift-gold-ink); }
.ift .ift-sv__chip--a{ background: linear-gradient(160deg, #46A1FB 0%, #0E82F6 100%); color: #FFFFFF; box-shadow: inset 3px 3px 4px rgba(255, 255, 255, .28), inset -3px -3px 4px rgba(0, 93, 187, .45), 0 18px 30px -16px rgba(14, 130, 246, .7); }
.ift .ift-sv__chip--a small{ color: rgba(255, 255, 255, .85); }
.ift .ift-sv__chip--a circle:first-child{ stroke: rgba(255, 255, 255, .3); }
.ift .ift-sv__chip--a .ift-ring{ stroke: #FFFFFF; }
.ift .ift-sv__tree .ift-flowline{ stroke: #9CCFBE; }
.ift .ift-sv__result{ border: 0; }
.ift .ift-sv__donut circle:first-child{ stroke: rgba(20, 20, 20, .07); }
.ift .ift-sv__donut{ opacity: .9; }

/* Section nav */
.ift .ift-subnav__inner{ border-radius: 16px; }
.ift .ift-subnav__link{ border-radius: 11px; }
.ift .ift-subnav__link.is-active, .ift .ift-subnav__link--stock.is-active{ background: var(--ift-ink); color: #FFFFFF; }
.ift .ift-subnav__link--faraid.is-active{ background: var(--ift-faraid); }
.ift .ift-subnav__link--zakat.is-active{ background: var(--ift-ink); color: var(--ift-gold); }
.ift .ift-subnav__progress i{ background: var(--ift-accent); }

/* Tool sections: all on white */
.ift .ift-tool{ padding: 128px 0 112px; }
.ift .ift-tool--stock, .ift .ift-tool--faraid, .ift .ift-tool--zakat{ background: #FFFFFF; color: var(--ift-ink); }
.ift .ift-tool + .ift-tool{ border-top: 1px solid var(--ift-line); }

/* Stock: grey workspace panel with white cards */
.ift .ift-dash{ border: 0; border-radius: 24px; background: var(--ift-soft); color: var(--ift-ink); box-shadow: none; }
.ift .ift-dash::before{ content: none; }
.ift .ift-dash__bar{ border-bottom-color: rgba(20, 20, 20, .07); }
.ift .ift-dash__dots i{ background: #D2D2D2; }
.ift .ift-dash__title{ color: var(--ift-muted); }
.ift .ift-dash .ift-chip{ border-color: #DCDCDC; background: #FFFFFF; color: var(--ift-muted); }
.ift .ift-dash__name small{ color: var(--ift-muted); }
.ift .ift-dash__name small span{ color: var(--ift-accent); }
.ift .ift-dash__logo{ background: linear-gradient(160deg, #46A1FB, #0E82F6); color: #FFFFFF; box-shadow: inset 2px 2px 3px rgba(255, 255, 255, .28), inset -2px -2px 3px rgba(0, 93, 187, .45); }
.ift .ift-dash__status{ background: #E6F6EA; color: #1E7A34; }
.ift .ift-dash__status i{ box-shadow: 0 0 0 4px rgba(30, 122, 52, .14); }
.ift .ift-seg{ background: rgba(20, 20, 20, .06); }
.ift .ift-seg button{ color: var(--ift-muted); }
.ift .ift-seg button:hover{ color: var(--ift-ink); }
.ift .ift-seg button[aria-pressed="true"]{ background: var(--ift-ink); color: #FFFFFF; }
.ift .ift-rule{ border: 0; background: #FFFFFF; color: var(--ift-accent); box-shadow: var(--ift-card-shadow); }
.ift .ift-rule small{ color: var(--ift-muted); letter-spacing: 0; text-transform: none; font-size: 12px; }
.ift .ift-rule b{ color: var(--ift-ink); letter-spacing: -.02em; }
.ift .ift-rule em{ color: var(--ift-muted); }
.ift .ift-panel, .ift .ift-panel:hover{ border: 0; background: #FFFFFF; box-shadow: var(--ift-card-shadow); }
.ift .ift-panel__head{ color: var(--ift-muted); letter-spacing: 0; }
.ift .ift-panel__head span{ text-transform: none; font-size: 13px; font-weight: 500; color: var(--ift-ink); }
.ift .ift-up{ color: #059F00; }
.ift .ift-chart path[stroke]{ stroke: #0E82F6; }
.ift .ift-chart g{ stroke: rgba(20, 20, 20, .07); }
.ift .ift-split i{ background: linear-gradient(90deg, #0E82F6, #5BD0C0); }
.ift .ift-legend{ color: var(--ift-text); }
.ift .ift-legend b, .ift .ift-meter__top b{ color: var(--ift-ink); }
.ift .ift-sw--ok{ background: #0E82F6; }
.ift .ift-panel__foot{ color: var(--ift-muted); }
.ift .ift-markkey, .ift .ift-meter__mark{ background: var(--ift-ink); }
.ift .ift-meter__top{ color: var(--ift-text); }
.ift .ift-meter__track{ background: rgba(20, 20, 20, .08); }
.ift .ift-meter__fill{ background: linear-gradient(90deg, #0E82F6, #5BD0C0); }
.ift .ift-proc li{ color: var(--ift-ink); }
.ift .ift-proc li:not(:last-child)::after{ background: rgba(20, 20, 20, .14); }
.ift .ift-proc i{ background: #E3F0FE; color: var(--ift-accent); }
.ift .ift-proc small{ color: #9A6A0B; }
.ift .ift-dash figcaption{ color: var(--ift-muted); }
.ift .ift-fcard{ border: 0; border-radius: 24px; background: var(--ift-soft); }
.ift .ift-fcard:hover{ box-shadow: none; background: #ECECEC; }
.ift .ift-fcard__ico{ background: #FFFFFF; color: var(--ift-accent); box-shadow: var(--ift-card-shadow); }
.ift .ift-fcard h3{ letter-spacing: -.03em; }

/* Faraid */
.ift .ift-fhero{ border-radius: 24px; box-shadow: none; }
.ift .ift-fam{ border: 0; border-radius: 20px; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 30px 60px -30px rgba(0, 0, 0, .35); }
.ift .ift-fam__tabs button{ border-radius: 10px; }
.ift .ift-rail__ico{ box-shadow: 0 0 0 6px #FFFFFF; }

/* Zakat: one dark calculation console on a white section */
.ift .ift-tool--zakat{ --ift-tool: #9A6A0B; }
.ift .ift-tool--zakat .ift-label b{ background: var(--ift-gold); color: #1F1703; }
.ift .ift-tool--zakat .ift-label--light{ color: #9A6A0B; border-color: currentColor; }
.ift .ift-tool--zakat .ift-h2--light{ color: var(--ift-ink); }
.ift .ift-tool--zakat .ift-body--light, .ift .ift-tool--zakat .ift-demo__copy p{ color: var(--ift-text); }
.ift .ift-tool--zakat .ift-demo__copy .ift-label{ color: #9A6A0B; }
.ift .ift-flow{ border: 0; border-radius: 24px; background: radial-gradient(55% 80% at 100% 0%, rgba(120, 180, 255, .35), transparent 62%), linear-gradient(150deg, #2B3F5C 0%, #3A5880 100%); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; color: #FFFFFF; }
.ift .ift-step{ background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .14); border-radius: 16px; }
.ift .ift-step--result{ background: linear-gradient(160deg, rgba(232, 200, 119, .2), rgba(255, 255, 255, .05) 70%); }
.ift .ift-zcard{ border: 0; border-radius: 24px; background: var(--ift-soft); }
.ift .ift-zcard:hover{ background: #ECECEC; border: 0; }
.ift .ift-zcard__ico{ background: #FFFFFF; color: #9A6A0B; box-shadow: var(--ift-card-shadow); }
.ift .ift-zcard h3{ color: var(--ift-ink); letter-spacing: -.03em; }
.ift .ift-zcard p{ color: var(--ift-muted); }
.ift .ift-zcard--cta, .ift .ift-zcard--cta:hover{ background: linear-gradient(150deg, #2B3F5C 0%, #3A5880 100%); }
.ift .ift-zcard--cta .ift-note{ color: rgba(255, 255, 255, .65); }
.ift .ift-video--zakat .ift-video__frame{ box-shadow: 0 40px 80px -45px rgba(0, 0, 0, .6); }
.ift .ift-video__frame{ border-radius: 24px; }
.ift .ift-video__kicker{ letter-spacing: 0; text-transform: none; font-size: 13px; }

/* Closing */
.ift .ift-closing{ border-top: 1px solid var(--ift-line); }
.ift .ift-cta{ border-radius: 24px; background: radial-gradient(55% 90% at 100% 0%, rgba(120, 180, 255, .5), rgba(120, 180, 255, 0) 62%), linear-gradient(150deg, #2B3F5C 0%, #3A5880 100%); }
.ift .ift-cta .ift-btn--ghost{ box-shadow: none; }

@media (max-width: 1080px){
  .ift .ift-hero__head{ grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 782px){
  .ift .ift-hero{ padding: 48px 0 64px; }
  .ift .ift-carousel{ margin-top: 40px; }
  .ift .ift-tool{ padding: 104px 0 80px; }
}

/* ---------- Theme v2: frosted grey panels in place of the dark ones ---------- */
.ift .ift-flow, .ift .ift-cta, .ift .ift-zcard--cta, .ift .ift-zcard--cta:hover{ position: relative; overflow: hidden; isolation: isolate; background: #EFEFEF; color: var(--ift-ink); }
.ift .ift-flow::before, .ift .ift-cta::before, .ift .ift-zcard--cta::before{ content: ''; position: absolute; z-index: -1; inset: -20%; filter: blur(60px); pointer-events: none; }
.ift .ift-flow::before{ background: radial-gradient(28% 40% at 82% 22%, rgba(232, 200, 119, .75), transparent 70%), radial-gradient(26% 38% at 14% 82%, rgba(14, 130, 246, .3), transparent 70%); }
.ift .ift-zcard--cta::before{ background: radial-gradient(45% 45% at 85% 15%, rgba(232, 200, 119, .8), transparent 70%); }
.ift .ift-cta::before{ background: radial-gradient(26% 42% at 84% 20%, rgba(14, 130, 246, .5), transparent 70%), radial-gradient(24% 40% at 10% 88%, rgba(46, 158, 91, .35), transparent 70%); }

/* Zakat flow on the frosted panel */
.ift .ift-flow .ift-chip--gold{ border-color: rgba(154, 106, 11, .35); background: rgba(255, 255, 255, .6); color: #7A5A12; }
.ift .ift-step, .ift .ift-step--result{ background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 18px 36px -24px rgba(0, 0, 0, .3); }
.ift .ift-step:hover{ border-color: #FFFFFF; }
.ift .ift-step--result{ background: rgba(255, 249, 232, .78); border-color: rgba(232, 200, 119, .9); }
.ift .ift-step__n{ color: #9A6A0B; }
.ift .ift-step h3{ color: var(--ift-ink); }
.ift .ift-file{ border-color: rgba(20, 20, 20, .25); color: var(--ift-text); }
.ift .ift-file svg:last-child{ color: #1E7A34; }
.ift .ift-rows div{ border-bottom-color: rgba(20, 20, 20, .08); }
.ift .ift-rows dt{ color: var(--ift-muted); }
.ift .ift-rows dd{ color: var(--ift-ink); }
.ift .ift-rows .is-neg dd{ color: #B4410C; }
.ift .ift-water i{ background: rgba(20, 20, 20, .28); }
.ift .ift-water i.is-neg{ background: #F0A04B; }
.ift .ift-water i.is-sum{ background: linear-gradient(90deg, #0E82F6, #5BD0C0); }
.ift .ift-figure{ color: var(--ift-ink); }
.ift .ift-figure small{ color: var(--ift-muted); }
.ift .ift-figure--gold{ color: #9A6A0B; }
.ift .ift-ratio{ background: rgba(20, 20, 20, .08); }
.ift .ift-ratio i{ background: linear-gradient(90deg, #0E82F6, #5BD0C0); }
.ift .ift-step__hint, .ift .ift-flow figcaption{ color: var(--ift-muted); }
.ift .ift-step__rate{ background: rgba(232, 200, 119, .35); color: #7A5A12; }
.ift .ift-step:not(:last-child)::after{ box-shadow: 0 0 0 5px rgba(255, 255, 255, .7); animation: none; }

/* Zakat call-to-action tile */
.ift .ift-zcard--cta .ift-quote--light{ color: var(--ift-ink); }
.ift .ift-zcard--cta .ift-note{ color: var(--ift-muted); }
.ift .ift-btn--gold{ background: var(--ift-btn); color: #FFFFFF; }
.ift .ift-btn--gold:hover, .ift .ift-btn--gold:focus-visible{ background: #9A6A0B; color: #FFFFFF; }

/* Closing banner */
.ift .ift-cta .ift-label--light{ color: var(--ift-accent); border-color: currentColor; }
.ift .ift-cta__copy h2{ color: var(--ift-ink); }
.ift .ift-cta__copy p{ color: var(--ift-text); }
.ift .ift-cta .ift-btn--light{ background: var(--ift-btn); color: #FFFFFF; }
.ift .ift-cta .ift-btn--light:hover, .ift .ift-cta .ift-btn--light:focus-visible{ background: var(--ift-btn-hover); color: #FFFFFF; box-shadow: 0 14px 28px -14px rgba(11, 18, 32, .5); }
.ift .ift-cta .ift-btn--ghost{ background: rgba(255, 255, 255, .7); color: var(--ift-ink); border-color: #DCDCDC; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ift .ift-cta .ift-btn--ghost:hover, .ift .ift-cta .ift-btn--ghost:focus-visible{ background: #FFFFFF; color: var(--ift-btn-hover); border-color: var(--ift-btn-hover); }
.ift .ift-cta .ift-label{ align-self: flex-start; padding-left: 12px; }

/* Dark blocks use slate blue rather than black. */
.ift .ift-video{ --v1: #3A5880; --v2: #2B3F5C; --v3: rgba(120, 180, 255, .45); }
.ift .ift-video--faraid{ --v1: #2F6F68; --v2: #24484A; --v3: rgba(124, 224, 192, .4); }
.ift .ift-video--zakat{ --v1: #3A5880; --v2: #2B3F5C; --v3: rgba(232, 200, 119, .4); }
.ift .ift-video__frame{ background: #2B3F5C; }

/* Faraid banner photo: keep the faces in frame and the heading readable. */
.ift .ift-fhero__media img{ object-position: 50% 30%; }
.ift .ift-fhero__media::after{ background: linear-gradient(90deg, rgba(6, 35, 31, .93) 0%, rgba(6, 35, 31, .8) 30%, rgba(6, 35, 31, .25) 58%, rgba(6, 35, 31, 0) 75%), linear-gradient(0deg, rgba(6, 35, 31, .35), transparent 40%); }
@media (max-width: 782px){
  .ift .ift-fhero{ min-height: 380px; }
  .ift .ift-fhero__media img{ object-position: 48% 20%; }
  .ift .ift-fhero__media::after{ background: linear-gradient(0deg, rgba(6, 35, 31, .95) 0%, rgba(6, 35, 31, .8) 38%, rgba(6, 35, 31, 0) 72%); }
}

/* Zakat: copy beside a photo with a floating result card */
.ift .ift-zakat__head{ grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 40px 72px; align-items: center; }
.ift .ift-zakat__title .ift-body{ margin-top: -4px; }
.ift .ift-zphoto{ position: relative; aspect-ratio: 4 / 3; border-radius: 24px; background: var(--ift-soft); }
.ift .ift-zphoto img{ width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 82% 40%; border-radius: 24px; display: block; }
.ift .ift-zphoto__tag{ position: absolute; top: 20px; right: 20px; padding: 6px 12px; border-radius: 999px; border: 1px dashed #B5B5B5; font-size: 12px; color: var(--ift-muted); }
.ift .ift-zphoto__card{ position: absolute; left: -32px; bottom: 36px; display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border-radius: 18px; background: linear-gradient(160deg, #F7E6B8 0%, #E8C877 100%); color: #1F1703; box-shadow: inset 3px 3px 4px rgba(255, 255, 255, .5), inset -3px -3px 4px rgba(154, 106, 11, .3), 0 24px 40px -20px rgba(122, 90, 18, .7); animation: ift-float 7s ease-in-out infinite; }
.ift .ift-zphoto__card small{ font-size: 12.5px; color: #5A4310; }
.ift .ift-zphoto__card b{ font-size: 30px; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ift .ift-zphoto__card span{ align-self: flex-start; margin-top: 4px; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .55); font-size: 11.5px; font-weight: 500; color: #5A4310; }
@media (max-width: 1080px){
  .ift .ift-zakat__head{ grid-template-columns: minmax(0, 1fr); }
  .ift .ift-zphoto{ aspect-ratio: 16 / 10; }
  .ift .ift-zphoto__card{ left: 20px; bottom: 20px; }
}
@media (max-width: 782px){
  .ift .ift-zphoto{ aspect-ratio: 4 / 3.4; }
  .ift .ift-zphoto img{ object-position: 78% 40%; }
  .ift .ift-zphoto__card{ left: 14px; bottom: 14px; padding: 12px 16px; }
  .ift .ift-zphoto__card b{ font-size: 24px; }
}

/* ---------- Zakat feature explorer: one card open at a time ---------- */
.ift .ift-zx{ display: flex; gap: 12px; height: 330px; }
.ift .ift-zx__item{ position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; border-radius: 24px; background: var(--ift-soft); overflow: hidden; transition: flex-grow .6s var(--ift-ease), background-color .4s ease, box-shadow .4s ease; }
.ift .ift-zx__item.is-open{ flex-grow: 5.2; background: #FFFFFF; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 30px 60px -34px rgba(122, 90, 18, .55); }
.ift .ift-zx__item.is-open::before{ content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(45% 70% at 100% 0%, rgba(232, 200, 119, .5), transparent 70%); }
.ift .ift-zx__item:not(.is-open):hover{ background: #E9E9E9; }
.ift .ift-zx__head{ position: relative; flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; width: 100%; padding: 24px 22px; text-align: left; color: var(--ift-ink); }
.ift .ift-zx__item.is-open .ift-zx__head{ flex: none; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 28px 30px 0; cursor: default; }
.ift .ift-zx__n{ font-size: 13px; font-weight: 600; color: #9A6A0B; font-variant-numeric: tabular-nums; }
.ift .ift-zx__ico{ display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; background: #FFFFFF; color: #9A6A0B; box-shadow: var(--ift-card-shadow); transition: background-color .4s ease, color .4s ease; }
.ift .ift-zx__item.is-open .ift-zx__ico{ background: var(--ift-gold); color: #1F1703; box-shadow: inset 2px 2px 3px rgba(255, 255, 255, .5), inset -2px -2px 3px rgba(154, 106, 11, .3); }
.ift .ift-zx__title{ margin-top: auto; writing-mode: vertical-rl; transform: rotate(180deg); max-height: 190px; font-size: 15.5px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; white-space: normal; }
.ift .ift-zx__item.is-open .ift-zx__title{ flex-basis: 100%; margin-top: 6px; max-height: none; writing-mode: horizontal-tb; transform: none; font-size: 26px; letter-spacing: -.04em; white-space: normal; }
.ift .ift-zx__body{ display: none; }
.ift .ift-zx__item.is-open .ift-zx__body{ position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 28px; align-items: end; padding: 12px 30px 28px; animation: ift-rise .7s var(--ift-ease) .15s both; }
.ift .ift-zx__body p{ align-self: start; font-size: 15.5px; color: var(--ift-muted); }
.ift .ift-zx__art{ display: flex; justify-content: flex-end; }
.ift .ift-zart{ display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 280px; padding: 16px; border-radius: 16px; background: #FFFFFF; box-shadow: var(--ift-card-shadow); font-size: 12.5px; color: var(--ift-text); }
.ift .ift-zart b{ font-weight: 600; color: var(--ift-ink); }
.ift .ift-zart small{ font-size: 11.5px; color: var(--ift-muted); }
.ift .ift-zart i{ display: inline-flex; align-items: center; gap: 8px; }
.ift .ift-zart--drop{ align-items: center; text-align: center; border: 1.5px dashed #D9B25A; background: #FFFCF3; box-shadow: none; color: #9A6A0B; }
.ift .ift-zart--drop i{ padding: 6px 10px; border-radius: 9px; background: #FFFFFF; box-shadow: var(--ift-card-shadow); color: var(--ift-ink); }
.ift .ift-zart--rows i{ padding: 8px 10px; border-radius: 10px; background: var(--ift-soft); color: var(--ift-ink); }
.ift .ift-zart--rows svg{ width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: #E6F6EA; color: #1E7A34; }
.ift .ift-zart--amount b{ font-size: 26px; letter-spacing: -.04em; line-height: 1.1; }
.ift .ift-zart--amount em{ display: block; height: 8px; border-radius: 8px; background: rgba(20, 20, 20, .08); overflow: hidden; }
.ift .ift-zart--amount u{ display: block; width: var(--w); height: 100%; border-radius: 8px; background: linear-gradient(90deg, #0E82F6, #5BD0C0); }
.ift .ift-zart--sum{ flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.ift .ift-zart--sum i{ padding: 6px 10px; border-radius: 9px; background: var(--ift-soft); color: var(--ift-ink); font-weight: 500; }
.ift .ift-zart--sum u{ text-decoration: none; color: var(--ift-muted); }
.ift .ift-zart--sum b{ padding: 6px 12px; border-radius: 9px; background: var(--ift-gold); color: #1F1703; }
.ift .ift-zart--sum small{ flex-basis: 100%; }
.ift .ift-zart--doc{ border-top: 3px solid var(--ift-gold); }
.ift .ift-zart--doc em{ display: block; height: 7px; border-radius: 7px; background: rgba(20, 20, 20, .09); }
.ift .ift-zart--doc em:nth-of-type(2){ width: 82%; }
.ift .ift-zart--doc em:nth-of-type(3){ width: 60%; }
.ift .ift-zart--doc i{ align-self: flex-start; margin-top: 4px; padding: 3px 9px; border-radius: 999px; background: #FBF1D6; color: #7A5A12; font-size: 11.5px; }
.ift .ift-zband{ flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding: 32px 36px; }
.ift .ift-zband .ift-quote{ flex: 1 1 420px; font-size: 20px; }
.ift .ift-zband__act{ flex: 0 1 320px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ift .ift-zband:hover{ transform: none; }
@media (max-width: 900px){
  .ift .ift-zx{ flex-direction: column; height: auto; }
  .ift .ift-zx__item, .ift .ift-zx__item.is-open{ flex: none; }
  .ift .ift-zx__head, .ift .ift-zx__item.is-open .ift-zx__head{ flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 12px; padding: 16px 18px; }
  .ift .ift-zx__item.is-open .ift-zx__head{ padding-bottom: 0; }
  .ift .ift-zx__ico{ width: 40px; height: 40px; }
  .ift .ift-zx__title, .ift .ift-zx__item.is-open .ift-zx__title{ flex-basis: auto; margin: 0; max-height: none; writing-mode: horizontal-tb; transform: none; font-size: 17px; letter-spacing: -.02em; white-space: normal; }
  .ift .ift-zx__item.is-open .ift-zx__body{ grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 12px 18px 20px; }
  .ift .ift-zx__art{ justify-content: flex-start; }
  .ift .ift-zband{ padding: 24px; }
}

/* ---------- Shared mini-illustration extras ---------- */
.ift .ift-zart em{ display: block; height: 8px; border-radius: 8px; background: rgba(20, 20, 20, .08); overflow: hidden; }
.ift .ift-zart em u{ display: block; width: var(--w); height: 100%; border-radius: 8px; background: linear-gradient(90deg, #0E82F6, #5BD0C0); }
.ift .ift-zart__kv{ display: flex; align-items: center; gap: 8px; color: var(--ift-text); }
.ift .ift-zart__kv b{ margin-left: auto; font-variant-numeric: tabular-nums; }
.ift .ift-zart--chips{ flex-direction: row; flex-wrap: wrap; gap: 8px; }
.ift .ift-zart--chips small{ flex-basis: 100%; }
.ift .ift-zart--chips i{ padding: 7px 12px; border-radius: 9px; background: var(--ift-soft); color: var(--ift-ink); font-weight: 500; }
.ift .ift-zart--chips i.is-on{ background: var(--ift-accent); color: #FFFFFF; }
.ift .ift-zart__tag{ align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #E3F0FE; color: var(--ift-accent); font-size: 11.5px; font-weight: 500; }
.ift .ift-zart--rows i b{ margin-left: auto; padding: 2px 9px; border-radius: 999px; background: #E6F6EA; color: #1E7A34; font-size: 11.5px; }
.ift .ift-zart--rows i b.is-out{ background: #ECEEF2; color: #5B6475; }
.ift .ift-zart--rows i > u{ width: 10px; height: 10px; border-radius: 50%; background: #B9C2CF; }
.ift .ift-zart--rows i > u.is-ok{ background: #7CC98F; }

/* ---------- Stock features: tabs over one stage ---------- */
.ift .ift-sx{ display: flex; flex-direction: column; gap: 20px; }
.ift .ift-sx__tabs{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ift .ift-sx__tabs button{ display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 4px 4px; border-top: 2px solid var(--ift-line); text-align: left; font-size: 16px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; color: var(--ift-muted); transition: color .3s ease, border-color .3s ease; }
.ift .ift-sx__tabs button span{ font-size: 12.5px; font-weight: 600; color: inherit; font-variant-numeric: tabular-nums; }
.ift .ift-sx__tabs button:hover{ color: var(--ift-ink); }
.ift .ift-sx__tabs button.is-on{ color: var(--ift-ink); border-top-color: var(--ift-accent); }
.ift .ift-sx__tabs button.is-on span{ color: var(--ift-accent); }
.ift .ift-sx__stage{ position: relative; border-radius: 24px; background: var(--ift-soft); overflow: hidden; }
.ift .ift-sx__stage::before{ content: ''; position: absolute; inset: 0; background: radial-gradient(40% 80% at 100% 0%, rgba(14, 130, 246, .2), transparent 70%); pointer-events: none; }
.ift .ift-sx__panel{ display: none; }
.ift .ift-sx__panel.is-on{ position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px 56px; align-items: center; min-height: 280px; padding: 44px 48px; animation: ift-rise .6s var(--ift-ease) both; }
.ift .ift-sx__copy{ display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ift .ift-sx__ico{ display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 15px; background: linear-gradient(160deg, #46A1FB, #0E82F6); color: #FFFFFF; box-shadow: inset 2px 2px 3px rgba(255, 255, 255, .28), inset -2px -2px 3px rgba(0, 93, 187, .45), 0 14px 24px -14px rgba(14, 130, 246, .8); }
.ift .ift-sx__copy h3{ font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.04em; color: var(--ift-ink); }
.ift .ift-sx__copy p{ font-size: 16px; color: var(--ift-muted); max-width: 520px; }
.ift .ift-sx__art{ display: flex; justify-content: center; }
.ift .ift-sx__art .ift-zart{ max-width: 340px; padding: 20px; gap: 10px; font-size: 13.5px; }

/* ---------- Faraid features: list on the left, illustration on the right ---------- */
.ift .ift-fx{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 56px; align-items: stretch; }
.ift .ift-fx__list{ border-top: 1px solid var(--ift-line); }
.ift .ift-fx__list li{ border-bottom: 1px solid var(--ift-line); }
.ift .ift-fx__list button{ display: flex; align-items: center; gap: 16px; width: 100%; padding: 20px 4px; text-align: left; color: var(--ift-muted); transition: color .3s ease, padding-left .35s var(--ift-ease); }
.ift .ift-fx__list button:hover, .ift .ift-fx__list li.is-on button{ color: var(--ift-ink); }
.ift .ift-fx__list li.is-on button{ padding-left: 10px; padding-bottom: 8px; }
.ift .ift-fx__n{ font-size: 13px; font-weight: 600; color: var(--ift-faraid); font-variant-numeric: tabular-nums; }
.ift .ift-fx__title{ flex: 1; font-size: 19px; font-weight: 600; letter-spacing: -.03em; line-height: 1.3; }
.ift .ift-fx__plus{ position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #DCDCDC; transition: background-color .3s ease, border-color .3s ease, transform .4s var(--ift-ease); }
.ift .ift-fx__plus::before, .ift .ift-fx__plus::after{ content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; background: currentColor; transition: opacity .3s ease; }
.ift .ift-fx__plus::after{ transform: rotate(90deg); }
.ift .ift-fx__list li.is-on .ift-fx__plus{ background: var(--ift-faraid); border-color: var(--ift-faraid); color: #FFFFFF; transform: rotate(180deg); }
.ift .ift-fx__list li.is-on .ift-fx__plus::after{ opacity: 0; }
.ift .ift-fx__list p{ display: none; padding: 0 48px 20px 43px; font-size: 15.5px; color: var(--ift-muted); }
.ift .ift-fx__list li.is-on p{ display: block; animation: ift-rise .5s var(--ift-ease) both; }
.ift .ift-fx__stage{ position: relative; min-height: 380px; border-radius: 24px; background: radial-gradient(60% 70% at 100% 0%, rgba(30, 158, 126, .25), transparent 70%), #EDF5F1; overflow: hidden; }
.ift .ift-fx__panel{ display: none; }
.ift .ift-fx__panel.is-on{ position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 32px; animation: ift-rise .6s var(--ift-ease) both; }
.ift .ift-fx__ico{ position: absolute; left: 24px; top: 24px; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ift-faraid); color: #FFFFFF; box-shadow: inset 2px 2px 3px rgba(255, 255, 255, .25), inset -2px -2px 3px rgba(6, 60, 50, .4), 0 14px 24px -14px rgba(14, 124, 102, .8); }
.ift .ift-fx__panel .ift-zart{ max-width: 320px; padding: 20px; font-size: 13.5px; }
.ift .ift-fart-tree{ width: min(100%, 300px); height: auto; }
.ift .ift-fart-chain{ display: flex; align-items: center; gap: 12px; color: var(--ift-faraid); }
.ift .ift-fart-chain .ift-zart{ max-width: 170px; padding: 16px; }
.ift .ift-fx .ift-zart--doc{ border-top-color: var(--ift-faraid); }
.ift .ift-fx .ift-zart--doc i{ background: #E6F6EA; color: #1E7A34; }
.ift .ift-fx .ift-zart--sum b{ background: var(--ift-faraid); color: #FFFFFF; }

@media (max-width: 900px){
  .ift .ift-sx__tabs{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ift .ift-sx__tabs button{ font-size: 14.5px; }
  .ift .ift-sx__panel.is-on{ grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 28px 22px; }
  .ift .ift-sx__art{ justify-content: flex-start; }
  .ift .ift-fx{ grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ift .ift-fx__stage{ min-height: 280px; order: -1; }
  .ift .ift-fx__title{ font-size: 17px; }
  .ift .ift-fx__list p{ padding-right: 8px; }
  .ift .ift-fart-chain{ flex-direction: column; }
  .ift .ift-fart-chain > svg{ transform: rotate(90deg); }
}

/* ---------- Clarity pass: three tools up front, less copy ---------- */
.ift .ift-hero{ padding: 64px 0 88px; }
.ift .ift-hero__head{ grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; gap: 28px 72px; }
.ift .ift-hero__side{ gap: 22px; padding-bottom: 6px; }
.ift .ift-hero .ift-actions{ margin-top: 0; }
.ift .ift-summary{ font-size: 18px; color: var(--ift-text); max-width: 520px; }

/* The three tools as large selectable cards above the stage */
.ift .ift-carousel{ display: flex; flex-direction: column; gap: 12px; margin-top: 48px; border-radius: 0; background: none; overflow: visible; }
.ift .ift-carousel__viewport{ border-radius: 24px; background: var(--ift-soft); overflow: hidden; }
.ift .ift-carousel__bar{ position: static; padding: 0; }
.ift .ift-carousel__tabs{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ift .ift-ctab{ position: relative; flex-direction: row; align-items: center; gap: 16px; padding: 20px 22px 24px; border-radius: 20px; background: var(--ift-soft); color: var(--ift-ink); overflow: hidden; transition: background-color .3s ease, box-shadow .3s ease, transform .3s var(--ift-ease); }
.ift .ift-ctab:hover{ background: #EAEAEA; transform: translateY(-2px); }
.ift .ift-ctab.is-active{ background: #FFFFFF; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 24px 48px -28px rgba(0, 0, 0, .4); }
.ift .ift-ctab__ico{ flex: none; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 15px; color: #FFFFFF; background: linear-gradient(160deg, #46A1FB, #0E82F6); box-shadow: inset 2px 2px 3px rgba(255, 255, 255, .28), inset -2px -2px 3px rgba(0, 93, 187, .45); }
.ift .ift-ctab__ico--faraid{ background: linear-gradient(160deg, #2BB896, #0E7C66); box-shadow: inset 2px 2px 3px rgba(255, 255, 255, .28), inset -2px -2px 3px rgba(6, 60, 50, .45); }
.ift .ift-ctab__ico--zakat{ background: linear-gradient(160deg, #F7E6B8, #E0B85A); color: #1F1703; box-shadow: inset 2px 2px 3px rgba(255, 255, 255, .5), inset -2px -2px 3px rgba(154, 106, 11, .35); }
.ift .ift-ctab__text{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; text-align: left; }
.ift .ift-ctab__name{ font-size: 18px; font-weight: 600; letter-spacing: -.03em; line-height: 1.25; white-space: normal; }
.ift .ift-ctab__tag{ font-size: 13.5px; line-height: 1.35; color: var(--ift-muted); }
.ift .ift-ctab__num{ align-self: flex-start; font-size: 12.5px; font-weight: 600; color: #A0A0A0; font-variant-numeric: tabular-nums; }
.ift .ift-ctab__track{ position: absolute; left: 22px; right: 22px; bottom: 10px; height: 3px; background: transparent; }
.ift .ift-ctab.is-active .ift-ctab__track{ background: rgba(20, 20, 20, .08); }
.ift .ift-ctab__track i{ background: var(--ift-accent); }
.ift .ift-carousel__ctrl{ position: absolute; right: 24px; bottom: 24px; z-index: 3; }
.ift .ift-slide{ padding: 48px 56px 56px; min-height: 420px; }
.ift .ift-slide__count{ display: none; }
@media (max-width: 1080px){
  .ift .ift-hero__head{ grid-template-columns: minmax(0, 1fr); }
  .ift .ift-ctab{ flex-wrap: wrap; padding: 16px 16px 22px; gap: 12px; }
  .ift .ift-ctab__num{ display: none; }
  .ift .ift-ctab__text{ flex-basis: 100%; }
  .ift .ift-ctab__track{ left: 16px; right: 16px; }
}
@media (max-width: 782px){
  .ift .ift-hero{ padding: 40px 0 56px; }
  .ift .ift-carousel{ margin-top: 32px; }
  .ift .ift-carousel__bar{ padding: 0; }
  .ift .ift-carousel__tabs{ grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ift .ift-ctab{ flex-wrap: nowrap; padding: 12px 14px 16px; }
  .ift .ift-ctab__ico{ width: 42px; height: 42px; border-radius: 12px; }
  .ift .ift-ctab__text{ flex-basis: auto; }
  .ift .ift-ctab__name{ font-size: 16.5px; }
  .ift .ift-ctab__tag{ font-size: 13px; }
  .ift .ift-ctab__track{ bottom: 7px; }
  .ift .ift-slide{ padding: 28px 22px 84px; min-height: 0; }
  .ift .ift-carousel__ctrl{ right: 16px; bottom: 16px; }
  .ift .ift-summary{ font-size: 17px; }
}

/* ---------- Faraid: small, static family tree card ---------- */
.ift .ift-faraid__grid{ grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 64px; }
.ift .ift-faraid__grid .ift-fam{ margin-top: -150px; }
.ift .ift-fam__bar{ padding: 12px 16px; background: #FFFFFF; border-bottom: 0; }
.ift .ift-fam__name{ font-size: 14.5px; font-weight: 600; letter-spacing: -.02em; color: var(--ift-ink); }
.ift .ift-fam .ift-family__canvas{ --av: 38px; flex: none; height: 200px; margin: 14px 34px 34px; }
.ift .ift-fam .ift-node__cap b{ font-size: 12px; }
.ift .ift-fam .ift-node__cap small{ font-size: 11px; padding: 0 6px; }
.ift .ift-fam figcaption{ padding: 10px 16px 12px; border-top: 1px solid var(--ift-line); }
.ift .ift-fam .ift-family__key{ gap: 4px 16px; font-size: 11.5px; }
.ift .ift-screen-reader{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 1080px){
  .ift .ift-faraid__grid{ grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ift .ift-faraid__grid .ift-fam{ margin-top: 0; max-width: 420px; }
}
@media (max-width: 782px){
  .ift .ift-fam .ift-family__canvas{ --av: 36px; min-height: 0; height: 190px; margin: 12px 30px 32px; }
  .ift .ift-fam .ift-node__cap{ flex-direction: row; gap: 5px; }
}

/* ---------- Stock: simple "how it works" panel ---------- */
.ift .ift-stock__grid{ align-items: start; }
.ift .ift-how{ position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 24px; background: var(--ift-soft); overflow: hidden; }
.ift .ift-how::before{ content: ''; position: absolute; inset: 0; background: radial-gradient(45% 50% at 100% 0%, rgba(14, 130, 246, .2), transparent 70%); pointer-events: none; }
.ift .ift-how > *{ position: relative; }
.ift .ift-how__label{ font-size: 13px; font-weight: 600; color: var(--ift-muted); }
.ift .ift-how__steps + .ift-how__label{ margin-top: 12px; }
.ift .ift-how__steps{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: how; }
.ift .ift-how__steps li{ position: relative; counter-increment: how; display: flex; flex-direction: column; gap: 8px; padding: 20px 18px; border-radius: 18px; background: #FFFFFF; box-shadow: var(--ift-card-shadow); transition: transform .35s var(--ift-ease); }
.ift .ift-how__steps li:hover{ transform: translateY(-4px); }
.ift .ift-how__steps li::after{ content: '0' counter(how); position: absolute; right: 16px; top: 16px; font-size: 12.5px; font-weight: 600; color: #B0B0B0; }
.ift .ift-how__ico{ display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 6px; border-radius: 14px; background: linear-gradient(160deg, #46A1FB, #0E82F6); color: #FFFFFF; box-shadow: inset 2px 2px 3px rgba(255, 255, 255, .28), inset -2px -2px 3px rgba(0, 93, 187, .45); }
.ift .ift-how__steps b{ font-size: 16.5px; font-weight: 600; letter-spacing: -.03em; line-height: 1.25; color: var(--ift-ink); }
.ift .ift-how__steps small{ font-size: 13px; line-height: 1.45; color: var(--ift-muted); }
.ift .ift-how__methods{ display: flex; flex-direction: column; border-radius: 18px; background: #FFFFFF; box-shadow: var(--ift-card-shadow); overflow: hidden; }
.ift .ift-how__methods li{ display: flex; align-items: baseline; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--ift-line); }
.ift .ift-how__methods li:last-child{ border-bottom: 0; }
.ift .ift-how__methods b{ flex: 0 0 34%; font-size: 14.5px; font-weight: 600; letter-spacing: -.02em; color: var(--ift-ink); }
.ift .ift-how__methods span{ font-size: 13px; line-height: 1.4; color: var(--ift-muted); }
@media (max-width: 782px){
  .ift .ift-how{ padding: 18px; }
  .ift .ift-how__steps{ grid-template-columns: minmax(0, 1fr); }
  .ift .ift-how__steps li{ display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; row-gap: 2px; align-items: center; padding: 14px 16px; }
  .ift .ift-how__ico{ grid-row: span 2; margin: 0; }
  .ift .ift-how__steps li::after{ content: none; }
  .ift .ift-how__methods li{ flex-direction: column; gap: 2px; }
  .ift .ift-how__methods b{ flex: none; }
}

/* ---------- Stock: summary illustration and methodology names ---------- */
.ift .ift-stock__grid{ align-items: center; }
.ift .ift-how{ gap: 16px; padding: 36px 32px 30px; }
.ift .ift-ill{ display: flex; flex-direction: column; align-items: center; gap: 30px; margin-bottom: 14px; }
.ift .ift-ill__co, .ift .ift-ill__card, .ift .ift-ill__res{ position: relative; border-radius: 18px; background: #FFFFFF; box-shadow: var(--ift-card-shadow); }
.ift .ift-ill__co{ display: flex; align-items: center; gap: 14px; min-width: 250px; padding: 14px 18px; animation: ift-float 8s ease-in-out infinite; }
.ift .ift-ill__logo{ display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(160deg, #46A1FB, #0E82F6); color: #FFFFFF; box-shadow: inset 2px 2px 3px rgba(255, 255, 255, .28), inset -2px -2px 3px rgba(0, 93, 187, .45); }
.ift .ift-ill__co > span:last-child{ flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ift .ift-ill small{ font-size: 12.5px; color: var(--ift-muted); }
.ift .ift-ill__co i{ display: block; width: 120px; height: 9px; border-radius: 9px; background: rgba(20, 20, 20, .12); }
.ift .ift-ill__pair{ position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: 100%; }
.ift .ift-ill__card{ display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.ift .ift-ill__head{ display: flex; align-items: center; gap: 9px; color: var(--ift-accent); }
.ift .ift-ill__head b{ font-size: 15.5px; font-weight: 600; letter-spacing: -.02em; color: var(--ift-ink); }
.ift .ift-ill__card em{ display: block; height: 9px; border-radius: 9px; background: rgba(20, 20, 20, .08); overflow: hidden; }
.ift .ift-ill__card em u{ display: block; width: var(--w); height: 100%; border-radius: 9px; background: linear-gradient(90deg, #0E82F6, #5BD0C0); }
.ift .ift-ill .ift-split{ height: 9px; margin: 9px 0; }
.ift .ift-ill__res{ display: flex; align-items: center; gap: 14px; padding: 16px 22px 16px 16px; background: linear-gradient(160deg, #46A1FB 0%, #0E82F6 100%); color: #FFFFFF; box-shadow: inset 3px 3px 4px rgba(255, 255, 255, .28), inset -3px -3px 4px rgba(0, 93, 187, .45), 0 20px 34px -18px rgba(14, 130, 246, .8); }
.ift .ift-ill__res > span:last-child{ display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.ift .ift-ill__res small{ color: rgba(255, 255, 255, .85); }
.ift .ift-ill__res b{ font-size: 17px; font-weight: 600; letter-spacing: -.03em; }
.ift .ift-ill__tick{ display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #FFFFFF; color: #0E82F6; }
/* dashed connectors between the three rows */
.ift .ift-ill__pair::before, .ift .ift-ill__res::before{ content: ''; position: absolute; left: 50%; top: -30px; width: 0; height: 30px; border-left: 2px dashed #B9CDE6; }
.ift .ift-ill__pair::after{ content: ''; position: absolute; left: 25%; right: 25%; top: -1px; height: 0; border-top: 2px dashed #B9CDE6; z-index: -1; }
.ift .ift-how__chips{ display: flex; flex-wrap: wrap; gap: 8px; }
.ift .ift-how__chips li{ padding: 9px 16px; border-radius: 12px; background: #FFFFFF; box-shadow: var(--ift-card-shadow); font-size: 14.5px; font-weight: 600; letter-spacing: -.02em; color: var(--ift-ink); }
@media (max-width: 782px){
  .ift .ift-how{ padding: 26px 18px 22px; }
  .ift .ift-ill{ gap: 26px; }
  .ift .ift-ill__pair::before, .ift .ift-ill__res::before{ top: -26px; height: 26px; }
  .ift .ift-ill__card{ padding: 14px; }
  .ift .ift-ill__head b{ font-size: 14px; }
  .ift .ift-how__chips li{ padding: 8px 13px; font-size: 13.5px; }
}

/* ---------- De-duplication pass ---------- */
/* Shariah.ai: hovering or focusing a step points at its part of the illustration */
.ift .ift-how [data-part]{ transition: opacity .35s ease, transform .35s var(--ift-ease), box-shadow .35s ease; }
.ift .ift-how[data-hl] [data-part]{ opacity: .4; }
.ift .ift-how[data-hl="act"] [data-part="act"], .ift .ift-how[data-hl="ratio"] [data-part="ratio"], .ift .ift-how[data-hl="method"] [data-part="method"], .ift .ift-how[data-hl="result"] [data-part="result"]{ opacity: 1; transform: translateY(-3px); }
/* Faraid: feature list beside the video */
.ift .ift-fx{ grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; }
.ift .ift-fx__video .ift-demo{ justify-items: start; gap: 24px; }
.ift .ift-fx__video .ift-demo__copy{ align-items: flex-start; text-align: left; }
@media (max-width: 900px){
  .ift .ift-fx{ grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Desktop hero: everything on the first screen of an office laptop ----------
 * Copy on the left; the three tool cards and the stage on the right.
 * Sized to fit a 1366 x 650 browser viewport below the site header. */
@media (min-width: 1081px){
  .ift .ift-hero{ display: grid; grid-template-columns: minmax(24px, 1fr) minmax(0, 500px) minmax(0, 700px) minmax(24px, 1fr); align-items: center; padding: 32px 0 36px; }
  .ift .ift-hero > .ift-wrap{ max-width: none; margin: 0; padding: 0; grid-column: 3; }
  .ift .ift-hero > .ift-hero__head{ grid-column: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-right: 48px; }
  .ift .ift-hero__main{ gap: 16px; }
  .ift .ift-hero__side{ gap: 18px; padding-bottom: 0; }
  .ift .ift-h1{ font-size: clamp(36px, 3.3vw, 46px); line-height: 1.07; }
  .ift .ift-lead{ font-size: 16px; }
  .ift .ift-hero .ift-btn{ min-height: 46px; padding: 11px 20px; font-size: 15px; }
  .ift .ift-carousel{ margin-top: 0; gap: 10px; }
  .ift .ift-carousel__tabs{ gap: 10px; }
  .ift .ift-ctab{ flex-wrap: nowrap; align-items: flex-start; gap: 12px; padding: 14px 14px 18px; border-radius: 16px; }
  .ift .ift-ctab__ico{ width: 40px; height: 40px; border-radius: 12px; }
  .ift .ift-ctab__ico svg{ width: 20px; height: 20px; }
  .ift .ift-ctab__text{ flex-basis: auto; gap: 2px; }
  .ift .ift-ctab__name{ font-size: 15px; letter-spacing: -.02em; }
  .ift .ift-ctab__tag{ font-size: 12.5px; line-height: 1.3; }
  .ift .ift-ctab__num{ display: none; }
  .ift .ift-ctab__track{ left: 14px; right: 14px; bottom: 8px; }
  .ift .ift-carousel__viewport{ border-radius: 20px; }
  .ift .ift-slide{ grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 16px; padding: 20px 26px 20px 30px; min-height: 276px; }
  .ift .ift-slide__copy{ gap: 14px; padding-bottom: 44px; }
  .ift .ift-slide__title{ font-size: 27px; }
  .ift .ift-slide__text{ display: none; }
  .ift .ift-slide .ift-btn{ margin-top: 0; min-height: 42px; padding: 10px 16px; font-size: 14.5px; }
  .ift .ift-sv{ zoom: .7; }
  .ift .ift-carousel__ctrl{ left: 30px; right: auto; bottom: 18px; gap: 6px; }
  .ift .ift-cbtn{ width: 34px; height: 34px; border-radius: 10px; }
  .ift .ift-cbtn svg{ width: 16px; height: 16px; }
}


/* =====================================================================
 * Icon boxes: jewel-tone gradients (sapphire, emerald, gold).
 * One place to change the icon tile colours for the three tools.
 * ===================================================================== */
html body .ift{
  --ift-ico-stock: linear-gradient(145deg, #5B8CFF 0%, #2F55E0 55%, #1E3BB8 100%);
  --ift-ico-stock-glow: rgba(47, 85, 224, .55);
  --ift-ico-faraid: linear-gradient(145deg, #3FCFA8 0%, #0F9B7C 55%, #0A6F5B 100%);
  --ift-ico-faraid-glow: rgba(15, 155, 124, .5);
  --ift-ico-zakat: linear-gradient(145deg, #F6CE7A 0%, #D99A2B 55%, #B47716 100%);
  --ift-ico-zakat-glow: rgba(201, 138, 27, .55);
  --ift-ico-shine: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -8px 14px -8px rgba(0, 0, 0, .28);
}
/* Tool cards in the hero */
.ift .ift-ctab__ico{ position: relative; color: #FFFFFF; background: var(--ift-ico-stock); box-shadow: var(--ift-ico-shine), 0 10px 18px -8px var(--ift-ico-stock-glow); transition: transform .35s var(--ift-ease), box-shadow .35s ease; }
.ift .ift-ctab__ico--faraid{ color: #FFFFFF; background: var(--ift-ico-faraid); box-shadow: var(--ift-ico-shine), 0 10px 18px -8px var(--ift-ico-faraid-glow); }
.ift .ift-ctab__ico--zakat{ color: #FFFFFF; background: var(--ift-ico-zakat); box-shadow: var(--ift-ico-shine), 0 10px 18px -8px var(--ift-ico-zakat-glow); }
.ift .ift-ctab__ico::after{ content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(160deg, rgba(255, 255, 255, .32) 0%, rgba(255, 255, 255, 0) 46%); pointer-events: none; }
.ift .ift-ctab:hover .ift-ctab__ico, .ift .ift-ctab.is-active .ift-ctab__ico{ transform: translateY(-2px) scale(1.05); }
.ift .ift-ctab__ico svg{ position: relative; z-index: 1; }
/* Matching icon tiles inside each tool section */
.ift .ift-ill__logo, .ift .ift-sx__ico, .ift .ift-how__ico, .ift .ift-dash__logo, .ift .ift-sv__logo{ color: #FFFFFF; background: var(--ift-ico-stock); box-shadow: var(--ift-ico-shine), 0 10px 18px -10px var(--ift-ico-stock-glow); }
.ift .ift-ill__res, .ift .ift-sv__chip--a{ background: var(--ift-ico-stock); box-shadow: var(--ift-ico-shine), 0 20px 34px -18px var(--ift-ico-stock-glow); }
.ift .ift-ill__tick{ color: #2F55E0; }
.ift .ift-fx__ico{ color: #FFFFFF; background: var(--ift-ico-faraid); box-shadow: var(--ift-ico-shine), 0 10px 18px -10px var(--ift-ico-faraid-glow); }
.ift .ift-fx__list li.is-on .ift-fx__plus{ background: #0F9B7C; border-color: #0F9B7C; }
.ift .ift-zx__item.is-open .ift-zx__ico{ color: #FFFFFF; background: var(--ift-ico-zakat); box-shadow: var(--ift-ico-shine), 0 10px 18px -10px var(--ift-ico-zakat-glow); }


/* ---------- Faraid in turquoise ---------- */
html body .ift{
  --ift-ico-faraid: linear-gradient(145deg, #5FE0E0 0%, #14AEBB 55%, #0B8492 100%);
  --ift-ico-faraid-glow: rgba(20, 174, 187, .5);
  --ift-faraid: #0B8492;
  --ift-faraid-2: #14AEBB;
}
.ift .ift-btn--faraid:hover, .ift .ift-btn--faraid:focus-visible{ background: var(--ift-faraid); }
.ift .ift-fx__list li.is-on .ift-fx__plus{ background: var(--ift-faraid); border-color: var(--ift-faraid); }
.ift .ift-fhero{ background: linear-gradient(120deg, #06272C 0%, #0A4A52 55%, #128392 100%); }
.ift .ift-fhero__media::after{ background: linear-gradient(90deg, rgba(5, 38, 44, .93) 0%, rgba(5, 38, 44, .8) 30%, rgba(5, 38, 44, .25) 58%, rgba(5, 38, 44, 0) 75%), linear-gradient(0deg, rgba(5, 38, 44, .35), transparent 40%); }
.ift .ift-chip--light{ border-color: #C9E6E9; background: #ECF8F9; color: #0A6570; }
.ift .ift-slide--faraid::before{ background: radial-gradient(55% 80% at 100% 0%, rgba(20, 174, 187, .22), transparent 62%); }
.ift .ift-video--faraid{ --v1: #12808D; --v2: #0A3F47; --v3: rgba(95, 224, 224, .4); }
@media (max-width: 782px){
  .ift .ift-fhero__media::after{ background: linear-gradient(0deg, rgba(5, 38, 44, .95) 0%, rgba(5, 38, 44, .8) 38%, rgba(5, 38, 44, 0) 72%); }
}

/* Faraid family tree: centred once the layout becomes a single column */
@media (max-width: 1080px){
  .ift .ift-faraid__grid .ift-fam{ width: 100%; max-width: 440px; margin-left: auto; margin-right: auto; justify-self: center; }
}

/* Section switcher: each active tab takes its tool's colour, white text */
.ift .ift-subnav__link.is-active{ color: #FFFFFF; }
.ift .ift-subnav__link.is-active b{ opacity: .85; }
.ift .ift-subnav__link--stock.is-active{ background: linear-gradient(145deg, #3F6BF0 0%, #1E3BB8 100%); color: #FFFFFF; }
.ift .ift-subnav__link--faraid.is-active{ background: linear-gradient(145deg, #12A0AD 0%, #0A6F7B 100%); color: #FFFFFF; }
.ift .ift-subnav__link--zakat.is-active{ background: linear-gradient(145deg, #CC8E22 0%, #9A6110 100%); color: #FFFFFF; }

/* ---------- Desktop hero fills exactly the first screen ----------
 * The hero is as tall as the window below the site header, and its contents
 * scale with the window, so the tool sections only appear after scrolling. */
@media (min-width: 1081px){
  .ift .ift-hero{
    min-height: calc(100vh - var(--ift-top));
    min-height: calc(100svh - var(--ift-top));
    grid-template-columns: minmax(24px, 1fr) minmax(0, clamp(450px, 34vw, 660px)) minmax(0, clamp(620px, 48vw, 940px)) minmax(24px, 1fr);
    align-content: center;
    padding: 28px 0 32px;
  }
  .ift .ift-hero > .ift-hero__head{ gap: clamp(16px, 1.6vw, 30px); padding-right: clamp(36px, 4vw, 80px); }
  .ift .ift-hero__main{ gap: clamp(14px, 1.4vw, 26px); }
  .ift .ift-hero__side{ gap: clamp(16px, 1.6vw, 30px); }
  .ift .ift-h1{ font-size: clamp(36px, 3.35vw, 64px); }
  .ift .ift-lead{ font-size: clamp(16px, 1.12vw, 21px); }
  .ift .ift-eyebrow{ font-size: clamp(12.5px, .85vw, 15px); }
  .ift .ift-hero .ift-btn{ min-height: clamp(46px, 3.3vw, 60px); padding: 11px clamp(20px, 1.6vw, 30px); font-size: clamp(15px, 1.02vw, 18px); }
  .ift .ift-carousel{ gap: clamp(10px, .8vw, 16px); }
  .ift .ift-carousel__tabs{ gap: clamp(10px, .8vw, 16px); }
  .ift .ift-ctab{ gap: clamp(12px, .9vw, 18px); padding: clamp(14px, 1.1vw, 22px) clamp(14px, 1.1vw, 22px) clamp(18px, 1.4vw, 26px); border-radius: clamp(16px, 1.2vw, 22px); }
  .ift .ift-ctab__ico{ width: clamp(40px, 3vw, 58px); height: clamp(40px, 3vw, 58px); border-radius: clamp(12px, .9vw, 17px); }
  .ift .ift-ctab__ico svg{ width: clamp(20px, 1.5vw, 28px); height: clamp(20px, 1.5vw, 28px); }
  .ift .ift-ctab__name{ font-size: clamp(15px, 1.08vw, 20px); }
  .ift .ift-ctab__tag{ font-size: clamp(12.5px, .86vw, 15.5px); }
  .ift .ift-ctab__track{ left: clamp(14px, 1.1vw, 22px); right: clamp(14px, 1.1vw, 22px); bottom: clamp(8px, .6vw, 12px); }
  .ift .ift-carousel__viewport{ border-radius: clamp(20px, 1.5vw, 28px); }
  .ift .ift-slide{ min-height: clamp(270px, calc(100vh - var(--ift-top) - 250px), 640px); min-height: clamp(270px, calc(100svh - var(--ift-top) - 250px), 640px); padding: clamp(20px, 2vw, 44px) clamp(26px, 2.4vw, 52px); gap: clamp(16px, 1.6vw, 32px); }
  .ift .ift-slide__copy{ gap: clamp(14px, 1.3vw, 24px); padding-bottom: clamp(44px, 4vw, 70px); }
  .ift .ift-slide__title{ font-size: clamp(27px, 2.25vw, 44px); }
  .ift .ift-slide .ift-btn{ min-height: clamp(42px, 3vw, 56px); padding: 10px clamp(16px, 1.4vw, 26px); font-size: clamp(14.5px, 1vw, 17.5px); }
  .ift .ift-carousel__ctrl{ left: clamp(26px, 2.4vw, 52px); bottom: clamp(18px, 1.8vw, 36px); }
  .ift .ift-cbtn{ width: clamp(34px, 2.5vw, 44px); height: clamp(34px, 2.5vw, 44px); }
}
@media (min-width: 1280px) and (min-height: 700px){
  .ift .ift-sv{ zoom: .82; }
}
@media (min-width: 1500px) and (min-height: 800px){
  .ift .ift-sv{ zoom: 1; }
  .ift .ift-slide__text{ display: block; font-size: 16.5px; }
}
@media (min-width: 1800px) and (min-height: 900px){
  .ift .ift-sv{ zoom: 1.15; }
  .ift .ift-slide__text{ font-size: 18px; }
}


/* ---------- "AI-powered" strip inside each tool section ---------- */
.ift .ift-tool--stock{ --ift-ico: var(--ift-ico-stock); --ift-ico-glow: var(--ift-ico-stock-glow); --ift-ai-c: #2F55E0; }
.ift .ift-tool--faraid{ --ift-ico: var(--ift-ico-faraid); --ift-ico-glow: var(--ift-ico-faraid-glow); --ift-ai-c: #0B8492; }
.ift .ift-tool--zakat{ --ift-ico: var(--ift-ico-zakat); --ift-ico-glow: var(--ift-ico-zakat-glow); --ift-ai-c: #B47716; }
.ift .ift-ai{ position: relative; display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); align-items: center; gap: 20px 44px; padding: 24px 30px; border-radius: 22px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 24px 48px -32px rgba(0, 0, 0, .35); overflow: hidden; }
.ift .ift-ai::before{ content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--ift-ico); }
.ift .ift-ai::after{ content: ''; position: absolute; inset: 0; background: radial-gradient(30% 120% at 0% 50%, var(--ift-ico-glow), transparent 70%); opacity: .16; pointer-events: none; }
.ift .ift-ai > *{ position: relative; z-index: 1; }
.ift .ift-ai__badge{ display: flex; align-items: center; gap: 14px; }
.ift .ift-ai__ico{ flex: none; display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 15px; background: var(--ift-ico); color: #FFFFFF; box-shadow: var(--ift-ico-shine), 0 12px 20px -10px var(--ift-ico-glow); }
.ift .ift-ai__ico svg{ fill: currentColor; stroke-width: 0; animation: ift-twinkle 3.2s ease-in-out infinite; }
.ift .ift-ai__badge > span:last-child{ display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.ift .ift-ai__badge b{ font-size: 18px; font-weight: 600; letter-spacing: -.03em; color: var(--ift-ink); }
.ift .ift-ai__badge small{ font-size: 13px; color: var(--ift-muted); }
.ift .ift-ai__points{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; }
.ift .ift-ai__points li{ display: flex; align-items: flex-start; gap: 12px; padding-left: 28px; border-left: 1px solid var(--ift-line); }
.ift .ift-ai__points svg{ margin-top: 2px; color: var(--ift-ai-c); }
.ift .ift-ai__points span{ display: flex; flex-direction: column; gap: 3px; }
.ift .ift-ai__points b{ font-size: 15.5px; font-weight: 600; letter-spacing: -.02em; color: var(--ift-ink); }
.ift .ift-ai__points small{ font-size: 13.5px; line-height: 1.45; color: var(--ift-muted); }
@keyframes ift-twinkle{ 0%, 100%{ transform: scale(1); opacity: 1; } 50%{ transform: scale(.88); opacity: .8; } }
@media (max-width: 1080px){
  .ift .ift-ai{ grid-template-columns: minmax(0, 1fr); padding: 22px 24px; }
  .ift .ift-ai__points li{ padding-left: 0; border-left: 0; }
}
@media (max-width: 782px){
  .ift .ift-ai__points{ grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ift .ift-ai{ padding: 20px 20px 20px 24px; }
}


/* ---------- Tool cards, refreshed: white cards with a soft colour wash, flat icons ----------
 * Replaces the flat grey boxes and glossy icon tiles. */
.ift .ift-ctab--stock{ --c: #2F55E0; --c-soft: rgba(47, 85, 224, .1); --c-wash: rgba(91, 140, 255, .2); --c-grad: linear-gradient(135deg, #4F7BFF, #2A4BD7); }
.ift .ift-ctab--faraid{ --c: #0B8492; --c-soft: rgba(20, 174, 187, .12); --c-wash: rgba(95, 224, 224, .26); --c-grad: linear-gradient(135deg, #22BFCB, #0B8492); }
.ift .ift-ctab--zakat{ --c: #B47716; --c-soft: rgba(217, 154, 43, .14); --c-wash: rgba(246, 206, 122, .34); --c-grad: linear-gradient(135deg, #EDB54A, #C4861C); }
.ift .ift-ctab{ background: #FFFFFF; border: 1px solid #E8E9EE; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: border-color .3s ease, box-shadow .35s ease, transform .35s var(--ift-ease); }
.ift .ift-ctab::before{ content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(70% 90% at 100% 0%, var(--c-wash), transparent 68%); opacity: .55; transition: opacity .35s ease; pointer-events: none; }
.ift .ift-ctab > *{ position: relative; }
.ift .ift-ctab:hover{ background: #FFFFFF; border-color: color-mix(in srgb, var(--c) 35%, #E8E9EE); transform: translateY(-3px); box-shadow: 0 16px 32px -20px color-mix(in srgb, var(--c) 55%, transparent); }
.ift .ift-ctab:hover::before{ opacity: 1; }
.ift .ift-ctab.is-active{ background: #FFFFFF; border-color: var(--c); box-shadow: 0 0 0 3px var(--c-soft), 0 20px 40px -24px color-mix(in srgb, var(--c) 60%, transparent); }
.ift .ift-ctab.is-active::before{ opacity: 1; }
/* flat, tinted icon by default; filled with the tool colour when the card is selected */
.ift .ift-ctab .ift-ctab__ico{ background: var(--c-soft); color: var(--c); box-shadow: none; transition: background .35s ease, color .35s ease, transform .35s var(--ift-ease), box-shadow .35s ease; }
.ift .ift-ctab .ift-ctab__ico::after{ content: none; }
.ift .ift-ctab:hover .ift-ctab__ico, .ift .ift-ctab.is-active .ift-ctab__ico{ transform: none; }
.ift .ift-ctab.is-active .ift-ctab__ico{ background: var(--c-grad); color: #FFFFFF; box-shadow: 0 8px 16px -8px var(--c); }
.ift .ift-ctab__ico svg{ stroke-width: 1.9; }
.ift .ift-ctab__name{ color: var(--ift-ink); }
.ift .ift-ctab__tag{ color: #5F6672; }
.ift .ift-ctab__go{ position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; color: var(--c); background: var(--c-soft); opacity: 0; transform: translate(-4px, 4px); transition: opacity .3s ease, transform .35s var(--ift-ease); }
.ift .ift-ctab:hover .ift-ctab__go, .ift .ift-ctab.is-active .ift-ctab__go{ opacity: 1; transform: none; }
.ift .ift-ctab__go svg{ transform: rotate(-45deg); }
.ift .ift-ctab .ift-ctab__track i{ background: var(--c); }
.ift .ift-ctab.is-active .ift-ctab__track{ background: var(--c-soft); }
.ift .ift-ctab__text{ padding-right: 22px; }
@media (max-width: 782px){
  .ift .ift-ctab__go{ top: 50%; margin-top: -13px; opacity: 1; transform: none; }
  .ift .ift-ctab__text{ padding-right: 34px; }
}
@media (min-width: 1081px){
  .ift .ift-ctab__go{ display: none; }
  .ift .ift-ctab__text{ padding-right: 0; }
}

/* Headline gradient: blue only (no green) */
.ift .ift-grad{ background: linear-gradient(90deg, #0B4F9C 0%, #0A72D1 55%, #0A9BE8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Tool buttons that follow the visitor's ARMember plan ---------- */
.ift .ift-access{ display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ift .ift-launch{ margin: 0; }
.ift .ift-access__status{ display: inline-flex; align-items: flex-start; gap: 7px; margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ift-muted); }
.ift .ift-access__status svg{ flex: none; margin-top: 1px; }
.ift .ift-access__status.is-ok{ color: #1E7A34; }
.ift .ift-access__status.is-warn{ color: #9A5B0B; }
.ift .ift-btn.is-disabled{ opacity: .55; cursor: not-allowed; box-shadow: none; }
.ift .ift-btn.is-disabled:hover{ transform: none; box-shadow: none; }
.ift .ift-band--center .ift-access, .ift .ift-zband__act .ift-access{ align-items: flex-start; }
.ift .ift-tool--zakat .ift-access__status{ color: var(--ift-muted); }
.ift .ift-tool--zakat .ift-access__status.is-ok{ color: #1E7A34; }

/* ---------- Members-only panel (page visibility: members) ---------- */
.ift .ift-gate{ padding: 96px 0 120px; background: #FFFFFF; }
.ift .ift-gate__card{ max-width: 640px; margin: 0 auto; padding: 48px 44px; border-radius: 24px; background: var(--ift-soft); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ift .ift-gate .ift-actions{ justify-content: center; }
@media (max-width: 600px){ .ift .ift-gate__card{ padding: 36px 22px; } }

/* Hide the theme's page title bar on Shariah Tools pages (Bookworm: .page__header; generic themes: entry/page header). */
body.ift-hide-theme-title .article__page > .page__header,
body.ift-hide-theme-title .page__header.py-3,
body.ift-hide-theme-title .entry-header,
body.ift-hide-theme-title h1.entry-title,
body.ift-hide-theme-title .page-header .page-title{ display: none !important; }

/* ==========================================================================
   3.3.0  Shariah.ai: "See How It Works" and the video beside the four
   screening steps, in one panel (design agreed on the canvas, 22 Nov)
   ========================================================================== */
.ift .ift-sflow{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 44px; align-items: center; padding: 32px; border: 1px solid #E3EAF7; border-radius: 28px; background: #F5F8FE; }
.ift .ift-sflow__media{ display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.ift .ift-sflow__head{ display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ift .ift-sflow .ift-label{ padding-left: 12px; }
.ift .ift-sflow__head p{ margin: 0; max-width: 520px; font-size: 16px; line-height: 1.6; color: var(--ift-text); }
.ift .ift-sflow__steps{ display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.ift .ift-sflow__step{ position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; margin: 0; padding: 0; outline: none; }
.ift .ift-sflow__step::marker{ content: none; }
.ift .ift-sflow__step:not(:last-child)::before{ content: ""; position: absolute; left: 19px; top: 30px; width: 2px; height: calc(100% + 8px); background: #CFDBF5; }
.ift .ift-sflow__step.is-current:not(:last-child)::before{ background: linear-gradient(180deg, var(--ift-stock) 0%, #CFDBF5 100%); }
.ift .ift-sflow__node{ position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-top: 10px; border-radius: 50%; border: 1.5px solid #BFD0F4; background: #FFFFFF; color: var(--ift-stock); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease; }
.ift .ift-sflow__card{ display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 16px; border: 1px solid #E3EAF7; border-radius: 18px; background: #FFFFFF; transition: transform .35s var(--ift-ease), box-shadow .35s ease, border-color .3s ease; }
.ift .ift-sflow__ico{ display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: #EAF2FF; color: var(--ift-stock); transition: background-color .3s ease, color .3s ease; }
.ift .ift-sflow__card h4{ margin: 0; font-family: var(--ift-body); font-size: 15px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; color: var(--ift-ink); }
.ift .ift-sflow__card p{ margin: 2px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ift-muted); }
.ift .ift-sflow__step.is-current .ift-sflow__node, .ift .ift-sflow__step:hover .ift-sflow__node, .ift .ift-sflow__step:focus-visible .ift-sflow__node{ background: var(--ift-stock); border-color: var(--ift-stock); color: #FFFFFF; box-shadow: 0 0 0 6px rgba(5, 107, 235, .12); }
.ift .ift-sflow__step:hover .ift-sflow__card, .ift .ift-sflow__step:focus-visible .ift-sflow__card{ transform: translateX(4px); border-color: #A8C3F4; box-shadow: 0 16px 32px -22px rgba(5, 60, 160, .45); }
.ift .ift-sflow__step:hover .ift-sflow__ico, .ift .ift-sflow__step:focus-visible .ift-sflow__ico{ background: var(--ift-stock); color: #FFFFFF; }
@media (max-width: 1080px){ .ift .ift-sflow{ grid-template-columns: minmax(0, 1fr); padding: 28px; } }
@media (max-width: 600px){ .ift .ift-sflow{ padding: 20px 14px; border-radius: 22px; } .ift .ift-sflow__step{ grid-template-columns: 32px minmax(0, 1fr); gap: 10px; } .ift .ift-sflow__node{ width: 32px; height: 32px; font-size: 11.5px; } .ift .ift-sflow__step:not(:last-child)::before{ left: 15px; top: 26px; } .ift .ift-sflow__card{ grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 16px; } .ift .ift-sflow__ico{ width: 34px; height: 34px; } }
@media (prefers-reduced-motion: reduce){ .ift .ift-sflow__card, .ift .ift-sflow__node, .ift .ift-sflow__ico{ transition: none; } .ift .ift-sflow__step:hover .ift-sflow__card{ transform: none; } }
.ift .ift-sflow--solo{ grid-template-columns: minmax(0, 1fr); }
.ift .ift-sflow--solo .ift-sflow__steps{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.ift .ift-sflow--solo .ift-sflow__step::before{ display: none; }
@media (max-width: 782px){ .ift .ift-sflow--solo .ift-sflow__steps{ grid-template-columns: minmax(0, 1fr); } }
/* Faraid.ai without its video: the feature list takes the full width */
.ift .ift-fx--solo{ grid-template-columns: minmax(0, 1fr); }
/* Elementor editor only: a pasted video link that is not recognised */
.ift .ift-video__bad{ position: absolute; left: 16px; right: 16px; top: 16px; z-index: 3; padding: 10px 12px; border-radius: 10px; background: #FFF4E5; color: #7A3E00; font-size: 13px; line-height: 1.4; font-weight: 600; text-align: left; }
.ift .ift-video__poster:has(.ift-video__bad) .ift-video__soon{ display: none; }
