/* mlkomal.com landing (design approved 1405-09-04: canvas «لندینگ ملک و مال»). Version 2 tokens only. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.landing { background: var(--color-bg); color: var(--color-ink); font: var(--text-body); -webkit-text-size-adjust: 100%; }
a { color: var(--color-primary); }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lwrap { width: 100%; 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)); }

/* buttons and chips */
.lbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--radius-full); font: 800 15px/24px var(--font-family-base); text-decoration: none; white-space: nowrap; cursor: pointer; }
.lbtn-ink { background: var(--color-ink); color: #fff; }
.lbtn-primary { background: var(--color-primary); color: #fff; }
.lbtn-primary:hover { background: var(--color-primary-hover); }
.lbtn-light { background: var(--color-surface); color: var(--color-ink); box-shadow: inset 0 0 0 1.5px var(--color-border); }
.lbtn-white { background: #fff; color: var(--color-primary); min-height: 54px; padding: 0 26px; font-size: 16px; }
.lbtn-glass { background: rgba(255, 255, 255, .12); color: #fff; min-height: 54px; padding: 0 26px; font-size: 16px; }
.lchip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: var(--radius-full); background: var(--color-primary-tint); color: var(--color-primary); font: 800 14px/22px var(--font-family-base); text-decoration: none; white-space: nowrap; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.lrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* header */
.lhead { max-width: 1200px; margin: 0 auto; padding: calc(20px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) 20px max(24px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lbrand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--color-ink); }
.lbrand span { display: flex; flex-direction: column; }
.lbrand strong { font: 800 17px/26px var(--font-family-base); }
.lbrand small { font: 600 12px/18px var(--font-family-base); color: var(--color-text-muted); }
.lnav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lnav a:not(.lbtn) { padding: 10px 14px; border-radius: var(--radius-full); color: var(--color-ink); text-decoration: none; font: 600 14px/22px var(--font-family-base); }
.lnav a:not(.lbtn):hover { background: var(--color-surface); }
.lnav .lbtn { margin-inline-start: 8px; min-height: 46px; }

/* hero */
.lhero { position: relative; border-radius: var(--radius-hero); overflow: hidden; min-height: 560px; display: flex; align-items: flex-end; background: var(--color-primary); color: #fff; }
.lhero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lhero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 55, 45, .35) 0%, rgba(11, 55, 45, .55) 45%, rgba(11, 55, 45, .92) 100%); }
.lhero.no-photo .lhero-shade { background: radial-gradient(120% 90% at 85% 0%, #1B6E5B 0%, rgba(20, 90, 74, 0) 60%); }
.lhero-in { position: relative; width: 100%; padding: 56px; display: flex; flex-direction: column; gap: 22px; }
.lpill { align-self: flex-start; padding: 6px 14px; border-radius: var(--radius-full); background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); font: 700 13px/20px var(--font-family-base); }
.lhero h1 { font: 800 52px/72px var(--font-family-base); max-width: 760px; text-wrap: balance; }
.lhero p { font: 500 18px/32px var(--font-family-base); color: var(--color-on-photo-muted); max-width: 640px; }
.lsearch { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px; border-radius: 32px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); max-width: 820px; }
.ldeal { display: flex; padding: 4px; border-radius: var(--radius-full); background: rgba(0, 0, 0, .18); }
.ldeal button { min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--radius-full); background: transparent; color: #fff; font: 700 15px/24px var(--font-family-base); cursor: pointer; }
.ldeal button[aria-checked="true"] { background: #fff; color: var(--color-primary); font-weight: 800; }
.lsearch input { flex: 1 1 260px; min-width: 0; height: 52px; padding: 0 18px; border: 0; border-radius: var(--radius-full); background: #fff; color: var(--color-ink); font: 500 15px/24px var(--font-family-base); }
.lsearch input::placeholder { color: var(--color-placeholder); }
.lsearch .lbtn { min-height: 52px; padding: 0 26px; }
.lquick { display: flex; flex-wrap: wrap; gap: 8px; }
.lquick a { padding: 8px 14px; border-radius: var(--radius-full); background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none; font: 700 13px/20px var(--font-family-base); }
.lquick a:hover { background: rgba(255, 255, 255, .24); }

/* sections */
.lsec { padding-top: 72px; display: flex; flex-direction: column; gap: 24px; }
.lsec > h2, .lsec-head h2 { font: 800 34px/50px var(--font-family-base); }
.lsec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.lsec-head div { display: flex; flex-direction: column; gap: 6px; }
.lsec-head p { font: 500 16px/28px var(--font-family-base); color: var(--color-text-muted); }
.tone-green { background: var(--fallback-green-bg); color: var(--fallback-green-fg); }
.tone-sand { background: var(--fallback-sand-bg); color: var(--fallback-sand-fg); }
.tone-blue { background: var(--fallback-blue-bg); color: var(--fallback-blue-fg); }
.tone-clay { background: var(--fallback-clay-bg); color: var(--fallback-clay-fg); }

.lcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.lcat { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 28px; background: var(--color-surface); box-shadow: var(--shadow-card); text-decoration: none; color: var(--color-ink); }
.lcat:hover { box-shadow: var(--shadow-card-lg); }
.lcat-ic { width: 72px; height: 72px; flex: none; border-radius: 22px; display: flex; align-items: center; justify-content: center; }
.lcat span:last-child { display: flex; flex-direction: column; gap: 2px; }
.lcat b { font: 800 17px/26px var(--font-family-base); }
.lcat small { font: 600 13px/20px var(--font-family-base); color: var(--color-text-muted); }

.lcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.lcard { display: flex; flex-direction: column; padding: 10px; border-radius: var(--radius-card-lg); background: var(--color-surface); box-shadow: var(--shadow-card-lg); text-decoration: none; color: var(--color-ink); }
.lcard-ph { position: relative; height: 190px; border-radius: var(--radius-photo-lg); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.lcard-ph img { width: 100%; height: 100%; object-fit: cover; }
.lcard-tag { position: absolute; top: 12px; right: 12px; padding: 6px 12px; border-radius: var(--radius-full); background: rgba(23, 43, 38, .72); color: #fff; font: 700 12px/18px var(--font-family-base); }
.lcard-txt { display: flex; flex-direction: column; gap: 6px; padding: 14px 8px 8px; }
.lcard-txt small { font: 600 12px/18px var(--font-family-base); color: var(--color-text-muted); }
.lcard-txt strong { font: 800 22px/32px var(--font-family-base); color: var(--color-primary); }
.lcard-txt b { font: 800 16px/26px var(--font-family-base); }

.lhow { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.lbox { padding: 28px; border-radius: var(--radius-card-lg); background: var(--color-surface); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.lbox.tint { background: var(--color-primary-tint); box-shadow: none; }
.lbox h3 { font: 800 22px/34px var(--font-family-base); }
.lbox h2 { font: 800 28px/42px var(--font-family-base); }
.lbox p { font: 400 15px/28px var(--font-family-base); color: var(--color-text-body); }
.lsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; counter-reset: s; }
.lsteps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; font: 400 15px/28px var(--font-family-base); color: var(--color-text-body); }
.lsteps li::before { content: counter(s, persian); width: 40px; height: 40px; flex: none; border-radius: var(--radius-full); background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center; font: 800 16px/1 var(--font-family-base); }
.lsteps.soft li::before { background: var(--color-primary-tint); color: var(--color-primary); }
.lsteps b { color: var(--color-ink); }

.lpromise { border-radius: var(--radius-hero); background: var(--color-primary); color: #fff; padding: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.lpromise div { display: flex; flex-direction: column; gap: 10px; }
.lpromise b { font: 800 20px/30px var(--font-family-base); }
.lpromise span { font: 400 15px/28px var(--font-family-base); color: var(--color-on-green-muted); }

.lduo { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.lbig-ic { width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; }
.lbig-ic.solid { background: var(--color-primary); color: #fff; }
.lsoon { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: var(--radius-full); background: var(--color-surface); color: var(--color-text-muted); font: 700 14px/22px var(--font-family-base); }

.lfaq { max-width: 860px; gap: 14px; }
.lfaq details { padding: 20px 24px; border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-card); }
.lfaq summary { cursor: pointer; font: 800 17px/28px var(--font-family-base); }
.lfaq details p { margin-top: 10px; font: 400 15px/28px var(--font-family-base); color: var(--color-text-body); }

.lfinal { border-radius: var(--radius-hero); background: var(--color-ink); color: #fff; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.lfinal div:first-child { display: flex; flex-direction: column; gap: 8px; max-width: 620px; }
.lfinal h2 { font: 800 32px/48px var(--font-family-base); }
.lfinal p { font: 500 16px/28px var(--font-family-base); color: var(--color-on-green-muted); }

/* terms page */
.lterms { max-width: 760px; padding-top: 24px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 14px; }
.lterms h1 { font: var(--text-title-1); }
.lterms h2 { margin-top: 12px; font: var(--text-title-2); }
.lterms p, .lterms li { color: var(--color-text-body); }
.lterms ul { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; }

/* footer */
.lfoot { padding-top: 48px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.lfoot div { display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.lfoot strong { font: 800 16px/24px var(--font-family-base); }
.lfoot span { font: 500 13px/22px var(--font-family-base); color: var(--color-text-muted); }
.lfoot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.lfoot nav a { text-decoration: none; font: 700 14px/22px var(--font-family-base); }

/* copyright and maker credit */
.lcopy { padding-top: 20px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--color-divider); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.lcopy p { font: 600 13px/22px var(--font-family-base); color: var(--color-text-muted); }
.lmaker { display: inline-flex; align-items: center; gap: 12px; padding: 8px 10px 8px 16px; border-radius: var(--radius-full); background: var(--color-ink); color: #fff; text-decoration: none; box-shadow: var(--shadow-card); transition: transform .2s ease, box-shadow .2s ease; }
.lmaker:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-card-lg); }
.lmaker-ic { width: 40px; height: 40px; flex: none; border-radius: var(--radius-full); background: var(--color-primary); display: flex; align-items: center; justify-content: center; transition: transform .3s ease; }
.lmaker:hover .lmaker-ic { transform: rotate(-12deg); }
.lmaker-txt { display: flex; flex-direction: column; line-height: 1.2; }
.lmaker-txt small { font: 600 11px/16px var(--font-family-base); color: var(--color-on-green-muted); }
.lmaker-txt b { font: 800 15px/22px var(--font-family-base); }
.lmaker-txt b span { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-weight: 700; letter-spacing: .2px; color: var(--color-on-green-muted); margin-inline-start: 4px; }
.lmaker-go { width: 28px; height: 28px; border-radius: var(--radius-full); background: rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .lmaker, .lmaker-ic { transition: none; } .lmaker:hover, .lmaker:hover .lmaker-ic { transform: none; } }

/* phone (design: «لندینگ · گوشی») */
@media (max-width: 720px) {
  .lwrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .lhead { padding-left: 16px; padding-right: 16px; padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
  .lnav a:not(.lbtn) { display: none; }
  .lnav .lbtn { margin: 0; min-height: 44px; padding: 0 16px; font-size: 14px; }
  .lbrand strong { font-size: 15px; line-height: 22px; }
  .lhero { border-radius: 32px; min-height: 0; }
  .lhero-in { padding: 120px 20px 22px; gap: 14px; }
  .lpill { display: none; }
  .lhero h1 { font-size: 30px; line-height: 46px; }
  .lhero p { font-size: 15px; line-height: 27px; }
  .lsearch { padding: 6px; border-radius: 28px; gap: 8px; }
  .ldeal { flex: 1 1 100%; }
  .ldeal button { flex: 1; }
  .lsearch input { height: 46px; flex-basis: 0; }
  .lsearch .lbtn { min-height: 46px; padding: 0 18px; }
  .lquick { display: none; }
  .lsec { padding-top: 40px; gap: 16px; }
  .lsec > h2, .lsec-head h2 { font-size: 24px; line-height: 38px; }
  .lsec-head p { display: none; }
  .lcats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .lcat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border-radius: 24px; }
  .lcat-ic { width: 56px; height: 56px; border-radius: 18px; }
  .lcat b { font-size: 15px; line-height: 22px; }
  .lcat small { font-size: 12px; }
  .lcards { grid-template-columns: 1fr; }
  .lhow, .lduo { grid-template-columns: 1fr; }
  .lbox { padding: 22px; border-radius: 28px; }
  .lbox h3 { font-size: 18px; line-height: 28px; }
  .lbox h2 { font-size: 22px; line-height: 34px; }
  .lpromise { border-radius: 32px; padding: 26px 22px; gap: 20px; }
  .lpromise svg { display: none; }
  .lpromise b { font-size: 17px; line-height: 26px; }
  .lfinal { border-radius: 32px; padding: 26px 22px; }
  .lfinal h2 { font-size: 22px; line-height: 34px; }
  .lfinal .lrow, .lfinal .lbtn { width: 100%; }
  .lfinal .lbtn-glass { display: none; }
  .lfaq details { padding: 16px 18px; border-radius: 22px; }
  .lfaq summary { font-size: 15px; line-height: 26px; }
  .lcopy { flex-direction: column-reverse; align-items: stretch; text-align: center; }
  .lmaker { justify-content: center; }
}

/* «چطور کار می‌کند؟» (owner request 1405-09-10): two flows, each a timeline of steps with an icon */
.lhow { gap: 20px; align-items: stretch; }
.lflow { position: relative; overflow: hidden; padding: 30px 28px 28px; border-radius: var(--radius-card-lg); display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.lflow-sell { background: var(--color-primary); color: #fff; box-shadow: 0 24px 48px rgba(20, 90, 74, .22); }
.lflow-buy { background: var(--color-surface); color: var(--color-ink); box-shadow: var(--shadow-card); }
.lflow::before { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; top: -90px; inset-inline-end: -70px; pointer-events: none; }
.lflow-sell::before { background: rgba(255, 255, 255, .06); }
.lflow-buy::before { background: var(--color-primary-tint); opacity: .7; }
.lflow-head { position: relative; display: flex; align-items: center; gap: 14px; }
.lflow-ic { width: 56px; height: 56px; flex: none; border-radius: 18px; display: flex; align-items: center; justify-content: center; }
.lflow-ic svg { width: 28px; height: 28px; }
.lflow-sell .lflow-ic { background: rgba(255, 255, 255, .14); color: #fff; }
.lflow-buy .lflow-ic { background: var(--color-primary-tint); color: var(--color-primary); }
.lflow-head small { display: block; font: 700 13px/20px var(--font-family-base); opacity: .75; }
.lflow-head h3 { font: 800 21px/32px var(--font-family-base); margin: 0; }
.lflow-steps { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; width: 100%; flex: 1; }
.lflow-steps li { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding-bottom: 18px; }
.lflow-steps li:last-child { padding-bottom: 0; }
/* the line that joins the steps */
.lflow-steps li:not(:last-child)::after { content: ''; position: absolute; top: 56px; bottom: 2px; inset-inline-start: 25px; border-inline-start: 2px dashed; opacity: .3; }
.lflow-dot { position: relative; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.lflow-sell .lflow-dot { background: #fff; color: var(--color-primary); }
.lflow-buy .lflow-dot { background: var(--color-primary-tint); color: var(--color-primary); }
.lflow-dot i { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; font: 800 12px/22px var(--font-family-base); font-style: normal; text-align: center; }
.lflow-sell .lflow-dot i { background: #F2C14E; color: #3B2A00; }
.lflow-buy .lflow-dot i { background: var(--color-primary); color: #fff; }
.lflow-steps b { display: block; font: 800 16px/26px var(--font-family-base); margin-top: 3px; }
.lflow-steps p { margin: 2px 0 0; font: 400 14px/25px var(--font-family-base); }
.lflow-sell .lflow-steps p { color: rgba(255, 255, 255, .82); }
.lflow-buy .lflow-steps p { color: var(--color-text-body); }
.lflow-buy .lflow-steps li:last-child .lflow-dot { background: var(--color-primary); color: #fff; } /* the new «خواهان» step stands out */
.lflow-buy .lflow-steps li:last-child .lflow-dot i { background: #F2C14E; color: #3B2A00; }
.lflow .lbtn { position: relative; }
.lflow-sell .lbtn-light { box-shadow: none; }
@media (max-width: 720px) {
  .lflow { padding: 24px 18px 22px; gap: 18px; }
  .lflow-head h3 { font-size: 18px; line-height: 28px; }
  .lflow-ic { width: 48px; height: 48px; border-radius: 15px; }
  .lflow-steps li { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .lflow-dot { width: 44px; height: 44px; }
  .lflow-dot svg { width: 20px; height: 20px; }
  .lflow-steps li:not(:last-child)::after { top: 48px; inset-inline-start: 21px; }
  .lflow .lbtn { width: 100%; }
}
