/* =========================================================
   Soodiar landing page — light theme only
   ========================================================= */

:root {
  --primary: #6C5CF6;
  --primary-hover: #5D4DE8;
  --primary-50: #F5F4FF;
  --primary-100: #ECE9FE;
  --primary-200: #DAD5FD;
  --app-header: #5954C9; /* header color sampled from the app screenshot */

  --bg: #FFFFFF;
  --bg-soft: #FAFAFC;
  --text: #16151D;
  --text-2: #56546A;
  --text-3: #8B8999;
  --border: #ECEBF1;
  --border-strong: #DFDDE8;
  --green: #1E8E5A;
  --green-50: #EDF8F2;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(22, 18, 56, .05);
  --shadow: 0 1px 2px rgba(22, 18, 56, .04), 0 12px 32px -16px rgba(22, 18, 56, .14);
  --shadow-device: 0 1px 2px rgba(22, 18, 56, .05), 0 36px 72px -28px rgba(55, 40, 160, .30), 0 14px 28px -16px rgba(22, 18, 56, .10);

  --container: 1200px;
  --gutter: 24px;
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.4; text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; }
a { color: inherit; }

.i {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }

.accent { color: var(--primary); }

.skip-link {
  position: absolute;
  top: -100px;
  right: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--text);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--primary-200);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding-inline: 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn--sm { height: 40px; padding-inline: 16px; font-size: .9rem; border-radius: 10px; }
.btn--lg { height: 54px; padding-inline: 26px; font-size: 1rem; border-radius: 14px; }

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(60, 44, 170, .25), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.btn--primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 10px 24px -10px rgba(108, 92, 246, .65);
}
.btn--secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--secondary:hover { background: var(--bg-soft); border-color: #CFCCDB; }
.btn--ghost { background: transparent; color: var(--text-2); }
.btn--ghost:hover { background: #F3F3F7; color: var(--text); }
.btn--white { background: #fff; color: var(--primary); }
.btn--white:hover { background: var(--primary-50); box-shadow: 0 12px 28px -12px rgba(20, 10, 90, .45); }
.btn--on-primary { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn--on-primary:hover { background: rgba(255, 255, 255, .18); }

.btn__arrow { transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(-4px); }

/* ---------- Shared bits ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
}
.logo__mark { width: 32px; height: 32px; flex-shrink: 0; }
.logo__mark--sm { width: 20px; height: 20px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-2);
}
.pill .i { width: 16px; height: 16px; color: var(--primary); }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  color: var(--primary);
  font-size: .85rem;
  font-weight: 600;
}

.icon-box {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--primary-50);
  color: var(--primary);
}
.icon-box .i { width: 22px; height: 22px; }

.section { padding-block: clamp(76px, 9vw, 120px); }
.section--soft { background: var(--bg-soft); border-block: 1px solid #F1F0F5; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.section-head {
  max-width: 680px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.65rem, 1.2rem + 1.5vw, 2.4rem);
  font-weight: 800;
}
.section-head p {
  margin-top: 14px;
  color: var(--text-2);
  font-size: clamp(1rem, .96rem + .2vw, 1.1rem);
}

/* ---------- Reveal animation ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* =========================================================
   Navbar
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.nav.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px -18px rgba(22, 18, 56, .25);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--nav-h);
}
.nav__links { display: flex; gap: 2px; }
.nav__links a {
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav__links a:hover { color: var(--text); background: #F3F3F7; }
.nav__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
}
.nav__toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}
.nav__toggle .i--close { display: none; }
.nav__toggle[aria-expanded="true"] .i--menu { display: none; }
.nav__toggle[aria-expanded="true"] .i--close { display: block; }

.mobile-menu {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 40px -24px rgba(22, 18, 56, .25);
  padding-block: 8px 20px;
  animation: menuIn .25s var(--ease);
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav > a {
  padding: 14px 4px;
  border-bottom: 1px solid #F2F1F6;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
}
.mobile-menu__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } }

/* =========================================================
   Device frame (wraps the real app screenshot)
   ========================================================= */
.device {
  position: relative;
  margin: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid #E6E4EE;
  border-radius: 46px;
  box-shadow: var(--shadow-device);
}
.device__screen {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background: #F9FAFE;
  container-type: inline-size;
}
.device__screen img {
  display: block;
  width: 100%;
  height: auto;
}
/* Clean status bar laid over the original phone status bar */
.device__status {
  position: absolute;
  inset: 0 0 auto 0;
  height: 4.3%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: ltr;
  padding-inline: 8%;
  background: var(--app-header);
  color: #fff;
  font-size: 3.2cqw;
  font-weight: 600;
  line-height: 1;
}
.device__status-icons { display: flex; align-items: center; gap: 1.2cqw; }
.device__status-icons svg { height: .8em; width: auto; fill: currentColor; }
.device__status-icons svg:last-child { height: .85em; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 104px);
  overflow: hidden;
}
.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, #E4E2EE 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 35% 40%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 35% 40%, #000 10%, transparent 75%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.7rem);
  font-weight: 800;
  line-height: 1.32;
}
.hero h1 .accent { display: block; }
.hero__lead {
  max-width: 540px;
  margin-top: 22px;
  color: var(--text-2);
  font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.hero__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  color: var(--text-3);
  font-size: .9rem;
}
.hero__checks li { display: inline-flex; align-items: center; gap: 6px; }
.hero__checks .i { width: 16px; height: 16px; color: var(--primary); stroke-width: 2.4; }

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding-block: 12px;
}
.hero__halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(620px, 120%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(108, 92, 246, .14), rgba(108, 92, 246, .04) 60%, transparent);
  pointer-events: none;
}
.hero__device {
  width: 100%;
  max-width: 430px;
  animation: deviceIn 1.1s var(--ease) .1s both;
}
@keyframes deviceIn {
  from { opacity: 0; transform: translateY(48px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  animation: floatIn .8s var(--ease) both;
}
.float-card small { display: block; color: var(--text-3); font-size: .78rem; line-height: 1.5; }
.float-card strong { display: block; font-size: 1rem; font-weight: 800; line-height: 1.5; }
.float-card em { font-style: normal; font-weight: 500; font-size: .78rem; color: var(--text-3); }
.float-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--primary-50);
  color: var(--primary);
}
.float-card__icon--green { background: var(--green-50); color: var(--green); }
.float-card--profit { top: 47%; left: -9%; animation-delay: .6s; }
.float-card--credit { bottom: 12%; right: -9%; animation-delay: .75s; }
.float-card--credit strong { color: var(--green); }
@keyframes floatIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* =========================================================
   Benefits
   ========================================================= */
.benefits { padding-block: 16px clamp(64px, 8vw, 96px); }
.benefits__title {
  margin-bottom: 28px;
  text-align: center;
  font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem);
  font-weight: 700;
  color: var(--text-2);
}
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}
.benefit {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 26px 24px;
}
.benefit + .benefit { border-inline-start: 1px solid var(--border); }
.benefit h3 { font-size: 1rem; font-weight: 700; }
.benefit p { margin-top: 4px; color: var(--text-3); font-size: .88rem; line-height: 1.75; }
.benefit .icon-box { width: 40px; height: 40px; border-radius: 11px; }
.benefit .icon-box .i { width: 20px; height: 20px; }

/* =========================================================
   Features
   ========================================================= */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature {
  padding: 28px 24px 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.feature:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.feature h3 { margin-top: 20px; font-size: 1.07rem; font-weight: 700; }
.feature p { margin-top: 8px; color: var(--text-2); font-size: .92rem; line-height: 1.85; }

/* =========================================================
   Product showcase
   ========================================================= */
.stage {
  display: grid;
  grid-template-columns: 1fr minmax(0, 380px) 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(40px, 5vw, 64px) clamp(24px, 4vw, 56px);
  background:
    radial-gradient(circle at 50% 45%, rgba(108, 92, 246, .10), transparent 55%),
    #F7F7FB;
  border: 1px solid var(--border);
  border-radius: 32px;
}
.stage__device { width: 100%; }
.stage__notes { display: grid; gap: 20px; }
.note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.note h3 { font-size: 1rem; font-weight: 700; }
.note p { margin-top: 4px; color: var(--text-2); font-size: .9rem; line-height: 1.8; }
.note__num,
.marker {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1;
}
.marker {
  position: absolute;
  right: 1.5%;
  width: 7.5cqw;
  height: 7.5cqw;
  font-size: 3.8cqw;
  box-shadow: 0 0 0 1.2cqw rgba(108, 92, 246, .22);
}
.marker--end { right: auto; left: 1.5%; }

.details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.detail {
  padding: 16px 16px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
}
.detail__frame {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 18px 14px;
  margin-bottom: 20px;
  background: #F6F6FB;
  border-radius: 16px;
}
.detail h3 { padding-inline: 8px; font-size: 1.05rem; font-weight: 700; }
.detail p { padding-inline: 8px; margin-top: 6px; color: var(--text-2); font-size: .92rem; line-height: 1.85; }

/* Crops of the real screenshot (1024 x 1536). See comments for source regions. */
.crop {
  width: 100%;
  background-image: url("assets/soodiar-app-1024.jpg");
  background-repeat: no-repeat;
  background-size: 107.11% auto;      /* 1024 / 956 */
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(22, 18, 56, .06), 0 10px 24px -14px rgba(55, 40, 160, .3);
}
.crop--stats    { aspect-ratio: 956 / 224; background-position: 52.94% 36.43%; } /* x36 y478 */
.crop--accounts { aspect-ratio: 956 / 182; background-position: 52.94% 58.05%; } /* x36 y786 */
.crop--unpaid   { aspect-ratio: 956 / 232; background-position: 52.94% 74.08%; } /* x36 y966 */

/* =========================================================
   How it works
   ========================================================= */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.steps::before {
  content: "";
  position: absolute;
  top: 28px;
  inset-inline: 16%;
  border-top: 1.5px dashed var(--border-strong);
}
.step { position: relative; text-align: center; padding-inline: 12px; }
.step__num {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--primary-100);
  box-shadow: 0 0 0 6px var(--bg-soft);
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 800;
}
.step h3 { margin-top: 22px; font-size: 1.12rem; font-weight: 700; }
.step p { max-width: 300px; margin: 8px auto 0; color: var(--text-2); font-size: .95rem; }

/* =========================================================
   Audience
   ========================================================= */
.audience {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.persona {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .25s, box-shadow .25s;
}
.persona:hover { border-color: var(--primary-200); box-shadow: var(--shadow); }
.persona h3 { margin-top: 20px; font-size: 1.1rem; font-weight: 700; }
.persona p { margin-top: 8px; color: var(--text-2); font-size: .93rem; line-height: 1.85; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags span {
  padding: 2px 10px;
  border-radius: 8px;
  background: #F4F4F8;
  color: var(--text-2);
  font-size: .8rem;
  font-weight: 500;
}

/* =========================================================
   Simplicity
   ========================================================= */
.simple {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(32px, 6vw, 72px);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: 32px;
}
.simple h2 { font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.5rem); font-weight: 800; line-height: 1.45; }
.simple__text > p { margin-top: 18px; color: var(--text-2); font-size: 1.02rem; }
.simple__points { display: grid; gap: 12px; margin-top: 24px; }
.simple__points li { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: .98rem; }
.simple__points .i {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  padding: 4px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  stroke-width: 3;
}

.compare { display: grid; justify-items: center; gap: 12px; }
.compare__card {
  width: 100%;
  padding: 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border);
}
.compare__card--old { opacity: .75; }
.compare__card--new { border-color: var(--primary-200); box-shadow: var(--shadow); }
.compare__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--text-3);
  font-size: .85rem;
  font-weight: 600;
}
.compare__card--new .compare__label { color: var(--text); font-size: .95rem; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  padding: 5px 12px;
  border-radius: 10px;
  background: #F3F3F6;
  color: var(--text-3);
  font-size: .88rem;
  text-decoration: line-through;
  text-decoration-color: rgba(139, 137, 153, .45);
}
.chips--brand span {
  background: var(--primary-50);
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.compare__arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--primary-100);
  color: var(--primary);
}
.compare__arrow .i { width: 18px; height: 18px; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: border-color .25s, box-shadow .25s;
}
.faq__item.is-open { border-color: var(--primary-200); box-shadow: var(--shadow-sm); }
.faq__item h3 { font-size: inherit; }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 1.03rem;
  font-weight: 600;
  color: var(--text);
  text-align: start;
  cursor: pointer;
  border-radius: 18px;
}
.faq__q .i {
  width: 20px;
  height: 20px;
  color: var(--text-3);
  transition: transform .3s var(--ease), color .2s;
}
.faq__q:hover .i { color: var(--primary); }
.faq__item.is-open .faq__q .i { transform: rotate(180deg); color: var(--primary); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 24px 22px; color: var(--text-2); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
/* Without JS, keep answers readable */
html:not(.js) .faq__a { grid-template-rows: 1fr; }

/* =========================================================
   Final CTA
   ========================================================= */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 8vw, 96px) clamp(24px, 5vw, 64px);
  border-radius: 32px;
  background: var(--primary);
  color: #fff;
  text-align: center;
  isolation: isolate;
}
.cta__rings {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-radial-gradient(circle at 50% 120%, transparent 0 58px, rgba(255, 255, 255, .07) 58px 59px),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .14), transparent 60%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .35), #000 80%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .35), #000 80%);
}
.cta h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.7rem); font-weight: 800; }
.cta p {
  max-width: 540px;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1rem, .96rem + .25vw, 1.15rem);
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  padding-top: clamp(48px, 6vw, 72px);
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 32px;
}
.footer__brand p { max-width: 340px; margin-top: 14px; color: var(--text-2); font-size: .93rem; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h3 { margin-bottom: 4px; font-size: .95rem; font-weight: 700; }
.footer__col a {
  width: fit-content;
  color: var(--text-2);
  font-size: .93rem;
  text-decoration: none;
  transition: color .2s;
}
.footer__col a:hover { color: var(--primary); }
.footer__mail { display: inline-flex; align-items: center; gap: 8px; }
.footer__mail .i { width: 17px; height: 17px; }
.footer__bottom {
  margin-top: 48px;
  padding-block: 22px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: .85rem;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .features, .audience { grid-template-columns: repeat(2, 1fr); }
  .benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .benefit + .benefit { border-inline-start: 0; }
  .benefit:nth-child(even) { border-inline-start: 1px solid var(--border); }
  .benefit:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .float-card--profit { left: -4%; }
  .float-card--credit { right: -4%; }

  .stage { grid-template-columns: 1fr minmax(0, 340px); }
  .stage__device { grid-column: 2; grid-row: 1 / span 2; }
  .stage__notes--start { grid-column: 1; grid-row: 1; align-self: end; }
  .stage__notes--end { grid-column: 1; grid-row: 2; align-self: start; }
}

@media (max-width: 900px) {
  .nav__links, .nav__login { display: none; }
  .nav__toggle { display: grid; }

  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .hero__content { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__checks { justify-content: center; }
  .hero__device { max-width: 360px; }
  .float-card--profit { left: max(0px, calc(50% - 250px)); }
  .float-card--credit { right: max(0px, calc(50% - 250px)); }
  
  .stage { grid-template-columns: 1fr; }
  .stage__device { grid-column: 1; grid-row: 1; max-width: 340px; margin-inline: auto; }
  .stage__notes--start, .stage__notes--end { grid-column: 1; grid-row: auto; }
  .details { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }

  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { display: none; }

  .simple { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; --nav-h: 64px; }
  body { font-size: 15px; }

  .hero__actions .btn { width: 100%; }
  .hero__device { max-width: 300px; }
  .device { padding: 8px; border-radius: 38px; }
  .device__screen { border-radius: 30px; }
  .float-card { padding: 8px 12px 8px 10px; gap: 8px; border-radius: 13px; }
  .float-card strong { font-size: .85rem; }
  .float-card__icon { width: 30px; height: 30px; border-radius: 9px; }
  .float-card__icon .i { width: 17px; height: 17px; }
  .float-card--profit { top: 30%; left: -4px; }
  .float-card--credit { bottom: 14%; right: -4px; }
  
  .benefits__grid, .features, .audience { grid-template-columns: 1fr; }
  .feature { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding: 20px; }
  .feature .icon-box { grid-row: span 2; }
  .feature h3 { margin-top: 0; }
  .feature p { margin-top: 4px; }
  .benefit:nth-child(even) { border-inline-start: 0; }
  .benefit + .benefit { border-top: 1px solid var(--border); }
  .benefit { padding: 20px; }

  .stage { padding: 28px 16px; border-radius: 24px; }
  .simple { border-radius: 24px; }
  .cta { border-radius: 24px; }
  .cta__actions .btn { width: 100%; }
  .faq__q { padding: 18px; font-size: .98rem; }
  .faq__a p { padding: 0 18px 18px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 380px) {
  .nav__actions .btn--primary { display: none; }
}

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

/* =========================================================
   Language switch + English (LTR) version
   ========================================================= */
.nav__lang {
  display: inline-grid;
  place-items: center;
  height: 40px;
  min-width: 42px;
  padding-inline: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-2);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s, border-color .2s, background-color .2s;
}
.nav__lang:hover { color: var(--primary); border-color: var(--primary-200); background: var(--primary-50); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer__bottom a { color: var(--text-2); text-decoration: none; font-weight: 500; }
.footer__bottom a:hover { color: var(--primary); }

img.logo__mark { display: block; object-fit: contain; }

/* English page: Inter for Latin text, tighter headings, mirrored details */
html[lang="en"] body {
  font-family: 'Inter', 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.7;
}
html[lang="en"] h1,
html[lang="en"] h2 { letter-spacing: -.025em; }
html[lang="en"] h3 { letter-spacing: -.01em; }
html[lang="en"] .hero h1 { line-height: 1.12; }
html[lang="en"] .section-head h2,
html[lang="en"] .simple h2 { line-height: 1.2; }
html[lang="en"] .cta h2 { line-height: 1.2; }

[dir="ltr"] .skip-link { right: auto; left: 16px; }
[dir="ltr"] .btn:hover .btn__arrow { transform: translateX(4px); }
[dir="ltr"] .marker { right: auto; left: 1.5%; }
[dir="ltr"] .marker--end { left: auto; right: 1.5%; }
[dir="ltr"] .float-card { padding: 12px 14px 12px 16px; }
[dir="ltr"] .float-card--profit { left: auto; right: -9%; }
[dir="ltr"] .float-card--credit { right: auto; left: -9%; }
[dir="ltr"] .steps::before { inset-inline: 16%; }

@media (max-width: 1100px) {
  [dir="ltr"] .float-card--profit { right: -4%; left: auto; }
  [dir="ltr"] .float-card--credit { left: -4%; right: auto; }
}
@media (max-width: 900px) {
  [dir="ltr"] .float-card--profit { right: max(0px, calc(50% - 250px)); left: auto; }
  [dir="ltr"] .float-card--credit { left: max(0px, calc(50% - 250px)); right: auto; }
}
@media (max-width: 600px) {
  [dir="ltr"] .float-card--profit { right: -4px; left: auto; }
  [dir="ltr"] .float-card--credit { left: -4px; right: auto; }
  .nav__lang { height: 36px; min-width: 36px; padding-inline: 8px; }
}

/* =========================================================
   Projects (project-based profit tracking)
   ========================================================= */
.projects {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}
.projects__text h2 {
  font-size: clamp(1.65rem, 1.2rem + 1.5vw, 2.4rem);
  font-weight: 800;
}
.projects__lead {
  max-width: 580px;
  margin-top: 16px;
  color: var(--text-2);
  font-size: clamp(1rem, .96rem + .2vw, 1.1rem);
}
.project-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
  margin-top: 36px;
}
.project-point { display: flex; align-items: flex-start; gap: 14px; }
.project-point .icon-box { width: 40px; height: 40px; border-radius: 11px; }
.project-point .icon-box .i { width: 20px; height: 20px; }
.project-point h3 { font-size: 1rem; font-weight: 700; }
.project-point p { margin-top: 4px; color: var(--text-2); font-size: .9rem; line-height: 1.8; }

.formula {
  margin-top: 36px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.formula__label { color: var(--text-3); font-size: .82rem; font-weight: 500; }
.formula__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 10px;
}
.formula__item { display: flex; flex-direction: column; line-height: 1.5; }
.formula__item small { color: var(--text-3); font-size: .78rem; }
.formula__item strong { font-size: 1.05rem; font-weight: 800; }
.formula__item--cost strong { color: #D23B4E; }
.formula__item--result {
  padding: 6px 14px;
  border-radius: 12px;
  background: var(--green-50);
}
.formula__item--result strong { color: var(--green); }
.formula__op { color: var(--text-3); font-size: 1.3rem; font-weight: 600; }

.projects__visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding-block: 12px;
}
.projects__device { width: 100%; max-width: 340px; }
.device__status--light {
  height: 4.75%;
  background: #F0EFFF; /* matches the project screen background */
  color: #1C1B24;
}
.text-green { color: var(--green); }
.float-card--project { bottom: 13%; left: -2%; }
[dir="ltr"] .float-card--project { left: auto; right: -2%; }

/* how-it-works now sits on white */
.step__num { box-shadow: 0 0 0 6px #fff; }

@media (max-width: 1100px) {
  .project-points { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .projects { grid-template-columns: 1fr; }
  .projects__visual { order: -1; }
  .project-points { grid-template-columns: 1fr 1fr; }
  .float-card--project { left: max(0px, calc(50% - 250px)); }
  [dir="ltr"] .float-card--project { left: auto; right: max(0px, calc(50% - 250px)); }
}
@media (max-width: 600px) {
  .project-points { grid-template-columns: 1fr; }
  .projects__device { max-width: 290px; }
  .float-card--project { bottom: 10%; left: -4px; }
  [dir="ltr"] .float-card--project { left: auto; right: -4px; }
  .formula__row { gap: 8px 10px; }
  .formula__item strong { font-size: .95rem; }
}
