@font-face { font-family: yekan; font-weight: 400; font-display: swap; src: url(fonts/iranyekanwebregular.woff) format("woff"); }
@font-face { font-family: yekan; font-weight: 500; font-display: swap; src: url(fonts/iranyekanwebmedium.woff) format("woff"); }
@font-face { font-family: yekan; font-weight: 700; font-display: swap; src: url(fonts/iranyekanwebbold.woff) format("woff"); }

/* Cool neutral ramp, SibApp brand blue as the one accent. */
:root {
    --bg: #f5f7fa;
    --surface: #ffffff;
    --raised: #eceff4;
    --ink: #111827;
    --text-2: #4b5565;
    --muted: #6b7487;
    --line: rgba(17, 24, 39, .08);
    --line-strong: rgba(17, 24, 39, .15);
    --accent: #0047ff;
    --accent-hover: #0039cc;
    --accent-soft: #e8eeff;
    --danger: #dc2626;
    --green: #15803d;
    --green-soft: #ecfdf3;
    --green-line: rgba(22, 163, 74, .28);
    --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 16px/1.9 yekan, Tahoma, sans-serif;
    -webkit-font-smoothing: antialiased;
}
/* Persian script: never letter-space, it breaks the joins. */
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.5; }
h2 { font-size: 28px; }
h3 { font-size: 17px; }
p { margin: 0; }
a { color: inherit; }
b, strong { font-weight: 500; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
main > section { padding: 96px 0; }
.muted { color: var(--muted); font-size: 14px; }
.section-lead { color: var(--text-2); margin-top: 8px; max-width: 560px; }

.top { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; color: var(--ink); }
.logo svg { width: 92px; height: auto; }
.logo.small svg { width: 72px; }
.link { text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color .15s var(--ease); }
.link:hover { border-color: var(--ink); }

.button {
    display: inline-flex; align-items: center; justify-content: center;
    height: 48px; padding: 0 24px;
    background: var(--accent); color: #fff;
    border: 0; border-radius: 10px;
    font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
    transition: background-color .15s var(--ease), transform .15s var(--ease);
}
.button:hover { background: var(--accent-hover); }
.button:active { transform: scale(.98); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Hero: text on the right, the application form on the left. */
.hero {
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center;
    min-height: min(600px, calc(100vh - 160px));
    padding-top: 40px !important; padding-bottom: 56px !important;
}
.kicker { color: var(--accent); font-weight: 500; font-size: 15px; }
.hero h1 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.5; margin-top: 16px; text-wrap: balance; }
.lead { font-size: 18px; line-height: 1.9; color: var(--text-2); margin-top: 20px; max-width: 34rem; }
.hero-text .note { display: inline-block; margin-top: 20px; max-width: 34rem; }
.hero-text .muted.note { display: block; margin-top: 24px; }

/* Sample review: text on the right, the animated card on the left. */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.preview {
    margin: 0; padding: 40px;
    background: var(--raised); border-radius: 20px;
    /* The console the card sits on: a faint ruled sheet. */
    background-image: linear-gradient(var(--line) 1px, transparent 1px);
    background-size: 100% 32px;
}
.review-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    padding: 24px; box-shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 16px 40px rgba(17, 24, 39, .08);
}
.review-head { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.review-head span:nth-child(2) { flex: 1; font-size: 13px; color: var(--muted); line-height: 1.6; }
.review-head strong { display: block; font-size: 16px; color: var(--ink); }
.app-icon {
    width: 44px; height: 44px; border-radius: 11px; flex: none;
    display: grid; place-items: center;
    background: var(--accent); color: #fff;
}
.tag { font-size: 12px; color: var(--text-2); background: var(--raised); border-radius: 6px; padding: 2px 8px; }
.review-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.row-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--text-2); }
.row-label b { font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.row-min { font-size: 12px; color: var(--muted); margin-top: 6px; padding-inline-start: calc(50% - 24px); }
.stamp {
    display: flex; align-items: center; gap: 12px; margin-top: 20px;
    padding: 12px 16px; border-radius: 10px;
    background: var(--accent-soft); color: var(--accent);
}
.stamp span { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.stamp strong { display: block; font-size: 15px; color: var(--accent); }

/* Signature: a meter whose tick marks the minimum. Fills from the right (RTL). */
.meter { display: block; position: relative; height: 6px; margin-top: 10px; border-radius: 3px; background: var(--raised); }
.meter i {
    position: absolute; inset: 0; border-radius: 3px; background: var(--accent);
    transform: scaleX(var(--v)); transform-origin: right;
}
.meter::after { content: ""; position: absolute; right: 50%; top: -4px; width: 2px; height: 14px; border-radius: 1px; background: var(--ink); }
/* The sample card plays like a review once it is on screen (.play, set by the script
   at the bottom of index.php): installs 0.4–2.2s, monthly users 2.0–3.8s, then the
   result at 4.0s. .armed hides the result until then; without JS nothing is hidden. */
.preview.armed .stamp { opacity: 0; }
.preview.play .stamp { animation: rise .8s 4s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.partners { padding-top: 32px !important; }
.partners-title { color: var(--text-2); font-size: 15px; }
.partner-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.partner-list a { display: block; text-decoration: none; }
/* The store's own screenshots: the one place on the page with lots of color. */
.shot {
    display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; object-position: top;
    border-radius: 20px; box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(17, 24, 39, .10);
    transition: transform .2s var(--ease);
}
.partner-list a:hover .shot { transform: translateY(-4px); }
.app-meta { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.app-meta img { width: 40px; height: 40px; border-radius: 9px; flex: none; box-shadow: 0 0 0 1px var(--line); }
.app-meta > span { font-size: 13px; color: var(--muted); line-height: 1.6; }
.app-meta strong { display: block; color: var(--ink); font-size: 15px; }

.criteria { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.sheet .muted { margin-top: 4px; }
.sheet dl { margin: 20px 0 0; }
.sheet dl div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.sheet dt { color: var(--text-2); white-space: nowrap; }
.sheet dd { margin: 0; font-weight: 500; text-align: left; }
.sheet dd small { color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 8px; }
.sheet .meter { grid-column: 1 / -1; }
.num { font-size: 40px; line-height: 1.3; font-variant-numeric: tabular-nums; }

.band-dark { background: var(--ink); color: #f3f5f9; }
.band-dark .section-lead { color: #a3a9b8; }
.model { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.model li { padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
.model-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 20px; background: rgba(77, 125, 255, .16); color: #8eaaff; }
.model p { color: #a3a9b8; margin-top: 4px; font-size: 15px; }
/* The main reason: accent rule on top and a filled icon. */
.model .lead-item { border-top-color: #4d7dff; }
.model .lead-item .model-icon { background: var(--accent); color: #fff; }

.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { position: relative; }
/* The line joining each step to the next one (to its left in RTL). */
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 24px; right: 64px; left: -16px; height: 2px; background: repeating-linear-gradient(to left, var(--line-strong) 0 6px, transparent 6px 12px); }
.step-dot { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 24px; background: var(--accent-soft); color: var(--accent); margin-bottom: 20px; }
.steps p { color: var(--text-2); margin-top: 4px; font-size: 15px; }
.step-num { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.step-num em { font-style: normal; font-size: 12px; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 0 8px; }

/* Testimonials sit on their own band to break the rhythm. */
.reviews { background: var(--raised); }
.reviews-head { display: flex; justify-content: space-between; align-items: end; }
.arrows { display: flex; gap: 8px; }
.arrows button {
    width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center;
    border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer;
    transition: border-color .15s var(--ease), transform .15s var(--ease);
}
.arrows button:hover { border-color: var(--ink); }
.arrows button:active { transform: scale(.97); }
.track {
    list-style: none; margin: 40px 0 0;
    display: flex; gap: 16px; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    /* Cards start aligned with the page column, then bleed to the edge. */
    padding: 0 max(32px, calc((100vw - 1120px) / 2 + 32px)) 4px;
    scroll-padding: 0 max(32px, calc((100vw - 1120px) / 2 + 32px));
}
.track::-webkit-scrollbar { display: none; }
/* Green: growth and income, and it sets the testimonials apart from the partner apps above. */
.card {
    flex: 0 0 344px; scroll-snap-align: start;
    background: var(--green-soft); border: 1px solid var(--green-line); border-radius: 16px;
    padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.card blockquote { margin: 0; font-size: 16px; line-height: 2; }
.who { font-weight: 500; font-size: 14px; }
.who span { display: block; color: var(--green); font-weight: 400; }

.faq { margin-top: 32px; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1.4; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding: 0 0 20px; max-width: 720px; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: 0 16px 40px rgba(17, 24, 39, .05); }
.form label, .form legend { display: block; font-weight: 500; font-size: 15px; margin: 14px 0 6px; padding: 0; }
.form label small { color: var(--muted); font-size: 13px; font-weight: 400; }
.form > label:first-of-type, .form > .banner + label { margin-top: 0; }
fieldset { border: 0; margin: 14px 0 0; padding: 0; min-width: 0; }
/* A legend ignores its own top margin, so the fieldset carries the gap. */
.form legend { margin-top: 0; }
input[type=text], input[type=email], input[type=url] {
    width: 100%; height: 44px; font: inherit; color: var(--ink);
    padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg);
    transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
input[dir=ltr] { text-align: left; }
input:focus { border-color: var(--ink); background: #fff; outline: none; }
input[aria-invalid] { border-color: var(--danger); }
/* Compact upload row: the native picker inside a dashed box. */
input[type=file] { width: 100%; font: inherit; font-size: 14px; color: var(--muted); padding: 5px; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--bg); cursor: pointer; }
input[type=file][aria-invalid] { border-color: var(--danger); }
input[type=file]::file-selector-button {
    font: inherit; color: var(--ink); margin-left: 12px; cursor: pointer;
    padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg);
}
/* Product type: plain native radio buttons, side by side. */
/* Legend and choices on one line: a floated legend sits inline; the flex row is a BFC, so it lines up beside it. */
.form fieldset { display: flow-root; }
.form fieldset legend { float: right; margin: 0 0 0 32px; }
.segmented { display: flex; gap: 32px; }
.segmented label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; cursor: pointer; }
.segmented input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.form .button { width: 100%; margin-top: 24px; }
.error { color: var(--danger); font-size: 13px; margin-top: 4px; }
.banner { background: #fbeeed; border-radius: 10px; padding: 12px 16px; margin: 0 0 20px; font-size: 14px; }
.done h3 { font-size: 20px; }
.done p { color: var(--text-2); margin-top: 8px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.sticky-cta { display: none; }

.foot { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; padding-bottom: 40px; border-top: 1px solid var(--line); }

@media (max-width: 860px) {
    .wrap { padding-left: 20px; padding-right: 20px; }
    main > section { padding: 64px 0; }
    /* Mobile (mostly Instagram traffic): headline, then straight into the form. */
    .hero { grid-template-columns: 1fr; gap: 28px; min-height: 0; padding-top: 16px !important; }
    .hero .kicker, .hero-text .muted.note, .hero-text .link.note { display: none; }
    .lead { font-size: 16px; margin-top: 12px; }
    .demo { grid-template-columns: 1fr; gap: 32px; }
    .preview { padding: 16px; border-radius: 16px; }
    .review-card { padding: 20px; }
    .criteria, .steps { grid-template-columns: 1fr; }
    .steps { gap: 28px; }
    .partner-list { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
    .model { grid-template-columns: 1fr; gap: 0; }
    .model li { display: grid; grid-template-columns: 44px 1fr; gap: 0 16px; padding: 20px 0; }
    .model-icon { grid-row: span 2; margin: 0; }
    .steps li:not(:last-child)::after { top: 48px; bottom: -28px; right: 23px; left: auto; width: 2px; height: auto; background: repeating-linear-gradient(to bottom, var(--line-strong) 0 6px, transparent 6px 12px); }
    .steps li { padding-right: 68px; }
    .step-dot { position: absolute; right: 0; top: 0; margin: 0; }
    .num { font-size: 32px; }
    .sticky-cta {
        display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 10;
        box-shadow: 0 8px 24px rgba(17, 24, 39, .18);
        opacity: 0; transform: translateY(16px); pointer-events: none;
        transition: opacity .25s var(--ease), transform .25s var(--ease), background-color .15s var(--ease);
    }
    .sticky-cta.show { opacity: 1; transform: none; pointer-events: auto; }
    .foot { padding-bottom: 96px; }
    .track { padding: 0 20px 4px; scroll-padding: 0 20px; }
    .card { flex-basis: 82vw; }
    .arrows { display: none; }
    .form { padding: 24px 20px; }
    .foot { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .stamp { animation: none; }
    .shot, .sticky-cta { transition: none; }
}
