/* ==========================================================================
   Sairox landing — styles
   Fonts · tokens · base · layout · components · sections · modal
   ========================================================================== */

/* ---------- Fonts (Vazirmatn variable, self-hosted) ---------- */
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/vazirmatn-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/vazirmatn-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/vazirmatn-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #dff3e6;
  --card: #fbfefc;
  --ink: #1c1c1c;
  --mute: #3d4a42;
  --green: #bfeccf;
  --soft: #cfe9d8;
  --red: #ffd9d2;
  --acc: #1c1c1c;
  --acc-ink: #dff3e6;
  --sh: #1c1c1c;
  --line: #1c1c1c;
  --radius: 18px;
  --wrap: 1120px;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #121714;
  --card: #1b221e;
  --ink: #eef6f1;
  --mute: #b4c4ba;
  --green: #2c5a3d;
  --soft: #24302a;
  --red: #4a2a26;
  --acc: #bfeccf;
  --acc-ink: #1c1c1c;
  --sh: #bfeccf;
  --line: #eef6f1;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s, color .2s;
}
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .85; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.mute { color: var(--mute); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 18px; }
.section { padding-block: 48px; scroll-margin-top: 90px; }
.section--narrow { max-width: 780px; }
.section__title { font-size: clamp(26px, 5vw, 38px); font-weight: 900; margin-bottom: 24px; text-wrap: balance; }
.section__lead { color: var(--mute); margin: -16px 0 28px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 240px)), 1fr)); }

/* ---------- Components ---------- */
.card {
  background: var(--card);
  border: 2.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--sh);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 3px 12px;
  border: 2px solid var(--line);
  border-radius: 99px;
  background: var(--green);
  font-size: 13px;
  font-weight: 700;
}
.pill--card { background: var(--card); }
.pill--red { background: var(--red); }
.pill--sm { padding: 1px 8px; border-width: 1.5px; font-size: 11.5px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border: 2.5px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  box-shadow: 4px 4px 0 var(--sh);
  transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--sh); }
.btn--primary { background: var(--acc); color: var(--acc-ink); }
.btn--sm { padding: 8px 14px; border-radius: 12px; font-size: 14px; box-shadow: 3px 3px 0 var(--sh); }
.btn--flat { box-shadow: none; }
.btn--block { width: 100%; height: 52px; padding: 0; }
.btn--icon { width: 40px; height: 40px; padding: 0; border-radius: 12px; box-shadow: none; font-size: 16px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.link-btn { border: none; background: none; text-decoration: underline; font-size: 14px; font-weight: 700; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 2.5px solid var(--line); }
.header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-block: 12px; }
.logo { display: flex; align-items: center; gap: 9px; }
.logo__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2.5px solid var(--line);
  border-radius: 12px;
  background: var(--ink);
  box-shadow: 3px 3px 0 var(--green);
}
.logo__play { width: 16px; height: 18px; margin-inline-end: -3px; background: var(--green); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.logo__dot { position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.logo__name { font-size: 19px; font-weight: 900; }
.nav {
  order: 3;
  flex: 1 1 100%;
  display: flex;
  justify-content: center;
  gap: 18px;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
}
.header__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
@media (min-width: 760px) {
  .nav { order: 0; flex: 1 1 auto; justify-content: flex-start; margin-inline-start: 12px; }
}

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px; align-items: center; padding-block: 40px 56px; }
.hero__copy { display: flex; flex-direction: column; gap: 20px; }
.hero__title { font-size: clamp(34px, 7vw, 58px); line-height: 1.25; font-weight: 900; text-wrap: balance; }
.hero__text { max-width: 520px; font-size: clamp(16px, 2.4vw, 19px); color: var(--mute); text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__visual { display: flex; justify-content: center; }

.phone { width: min(300px, 86vw); padding: 10px; border: 3px solid var(--line); border-radius: 38px; background: var(--ink); box-shadow: 8px 8px 0 var(--sh); }
.phone__screen { display: flex; flex-direction: column; gap: 10px; min-height: 520px; padding: 18px 14px 20px; border-radius: 30px; background: var(--bg); }
.phone__notch { align-self: center; width: 80px; height: 6px; margin-bottom: 6px; border-radius: 9px; background: var(--ink); opacity: .25; }
.phone__head { display: flex; justify-content: space-between; align-items: baseline; }
.phone__head b { font-size: 18px; font-weight: 900; }
.phone__head span { font-size: 12px; color: var(--mute); }
.hook { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 3px 3px 0 var(--sh); }
.hook__text { font-size: 13.5px; font-weight: 700; line-height: 1.6; }
.hook__meta { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; font-weight: 800; }

/* ---------- Trust bar ---------- */
.trust { border-block: 2.5px solid var(--line); background: var(--card); }
.trust__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 28px; padding-block: 20px; }
.trust__stat { display: flex; align-items: baseline; gap: 8px; }
.trust__stat b { font-size: 26px; font-weight: 900; }
.trust__stat span { font-size: 14px; font-weight: 600; color: var(--mute); }
.trust__brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; }
.trust__brand { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 13.5px; font-weight: 800; }
.trust__brand::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--ink); }
.trust__brand:nth-child(odd)::before { border-radius: 50%; }

/* ---------- Pain points / steps ---------- */
.pain { padding: 22px; font-size: 19px; font-weight: 800; }
.steps { list-style: none; counter-reset: step; --min: 220px; }
.step { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 2.5px solid var(--line); border-radius: var(--radius); background: var(--green); font-size: 17px; font-weight: 800; line-height: 1.6; counter-increment: step; }
.step::before { content: counter(step, persian); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 18px; font-weight: 900; }

/* ---------- Features ---------- */
.features { --min: 300px; gap: 18px; }
.feature { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; }
.feature__demo { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 130px; padding: 18px; border-bottom: 2.5px solid var(--line); background: var(--soft); list-style: none; }
.feature__row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 2px solid var(--line); border-radius: 10px; background: var(--card); font-size: 12.5px; font-weight: 700; }
.feature__row span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feature__title { padding: 16px 18px 20px; font-size: 18px; font-weight: 900; }

/* ---------- Example ---------- */
.example { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 2.5px solid var(--line); border-radius: 20px; background: var(--card); }
.example--after { background: var(--green); box-shadow: 6px 6px 0 var(--sh); }
.example__quote { font-size: 20px; font-weight: 800; line-height: 1.6; }
.example__note { font-size: 15px; }

/* ---------- Pricing ---------- */
.plans { --min: 290px; gap: 20px; align-items: start; }
.plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 24px 22px; border-radius: 22px; box-shadow: 4px 4px 0 var(--sh); }
.plan--hot { border-width: 3.5px; background: var(--green); box-shadow: 7px 7px 0 var(--sh); }
.plan__badge { position: absolute; top: -14px; left: 20px; padding: 2px 14px; border: 2.5px solid var(--line); border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 800; }
.plan__name { font-size: 22px; font-weight: 900; }
.plan__prices { display: flex; flex-direction: column; }
.plan__old { color: var(--mute); font-size: 15px; }
.plan__price { font-size: 32px; font-weight: 900; line-height: 1.3; }
.plan__price small { font-size: 14px; font-weight: 600; }
.plan__items { display: flex; flex-direction: column; gap: 8px; font-size: 15px; list-style: none; }
.plan__items li { display: flex; align-items: flex-start; gap: 8px; }
.plan__items li::before { content: "✓"; font-weight: 900; }
.plan .btn { padding: 12px; font-size: 15px; box-shadow: 3px 3px 0 var(--sh); }

/* ---------- Reviews ---------- */
.review { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 20px; }
.review__text { font-size: 15.5px; line-height: 1.9; text-wrap: pretty; }
.review__author { display: flex; align-items: center; gap: 10px; font-size: 13.5px; line-height: 1.5; }
.review__avatar { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 2px solid var(--line); border-radius: 50%; background: var(--green); font-weight: 900; }
.review__who { display: flex; flex-direction: column; }
.review__who b { font-weight: 800; }
.review__who span { color: var(--mute); text-align: right; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { border-radius: 16px; box-shadow: 3px 3px 0 var(--sh); }
.faq__q { display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px; font-size: 16px; font-weight: 800; list-style: none; cursor: pointer; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; font-size: 22px; line-height: 1; transition: transform .2s; }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 18px 18px; font-size: 15px; color: var(--mute); }

/* ---------- Final CTA ---------- */
.cta { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: clamp(28px, 6vw, 56px); border: 3px solid var(--line); border-radius: 26px; background: var(--ink); color: var(--bg); box-shadow: 8px 8px 0 var(--green); text-align: center; }
.cta__title { font-size: clamp(28px, 6vw, 46px); font-weight: 900; line-height: 1.3; text-wrap: balance; }
.cta .btn { border-color: var(--bg); background: var(--bg); color: var(--ink); box-shadow: none; font-size: 17px; font-weight: 900; }

/* ---------- Footer ---------- */
.footer { border-top: 2.5px solid var(--line); background: var(--card); }
.footer__grid { --min: 200px; gap: 24px; padding-block: 32px; font-size: 14px; }
.footer__col { display: flex; flex-direction: column; gap: 6px; }
.footer__brand { font-size: 18px; font-weight: 900; }
.footer__brand span { font-size: 12px; letter-spacing: .2em; color: var(--mute); }
.footer__copy { padding: 14px; border-top: 2px solid var(--line); text-align: center; font-size: 13px; color: var(--mute); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(10, 14, 12, .55); }
.modal__panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow: auto;
  padding: 22px 20px 28px;
  border: 3px solid var(--line);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  background: var(--bg);
  box-shadow: 0 -6px 0 var(--sh);
  animation: sheet-up .22s ease-out;
}
@media (min-width: 560px) {
  .modal { align-items: center; padding: 20px; }
  .modal__panel { border-bottom: 3px solid var(--line); border-radius: 24px; box-shadow: 6px 6px 0 var(--sh); }
}
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__head { display: flex; justify-content: space-between; align-items: center; }
.modal__title { font-size: 21px; font-weight: 900; }
.progress { display: flex; gap: 6px; }
.progress span { flex: 1; height: 6px; border: 1.5px solid var(--line); border-radius: 9px; }
.progress span.is-done { background: var(--ink); }

.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.field__hint { font-size: 12.5px; font-weight: 500; color: var(--mute); }
.input {
  height: 50px;
  padding: 0 14px;
  border: 2.5px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  font-size: 16px;
  font-weight: 500;
  outline: none;
}
.input:focus { box-shadow: 3px 3px 0 var(--sh); }
.input--ltr { direction: ltr; text-align: right; letter-spacing: .04em; }
.input--code { height: 60px; font-size: 28px; font-weight: 800; text-align: center; letter-spacing: .5em; direction: ltr; }
.input--last4 { text-align: center; letter-spacing: .4em; direction: ltr; }
.input--file { height: auto; padding: 10px; border-style: dashed; font-size: 14px; }

.plan-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.plan-pick__opt { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border: 2.5px solid var(--line); border-radius: 12px; background: var(--card); font-size: 14px; font-weight: 800; }
.plan-pick__opt small { font-size: 11.5px; font-weight: 500; color: var(--mute); }
.plan-pick__opt[aria-pressed="true"] { background: var(--green); box-shadow: 3px 3px 0 var(--sh); }

.alert { padding: 8px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--red); font-size: 13.5px; font-weight: 700; line-height: 1.8; }
.note { padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); font-size: 14px; line-height: 1.9; }
.note--ok { background: var(--green); }
.legal { font-size: 12.5px; color: var(--mute); text-align: center; }
.legal a { text-decoration: underline; }

.summary { display: flex; flex-direction: column; gap: 8px; padding: 16px; box-shadow: 4px 4px 0 var(--sh); border-radius: 16px; }
.summary__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.summary__row--total { padding-top: 10px; border-top: 2px solid var(--line); }
.summary__row--total b { font-size: 22px; font-weight: 900; }
.summary__row--total small { font-size: 13px; font-weight: 600; }

.bank { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 2.5px solid var(--line); border-radius: 16px; background: var(--green); box-shadow: 4px 4px 0 var(--sh); }
.bank__label { font-size: 14px; font-weight: 800; }
.bank__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.bank__number { font-size: 21px; font-weight: 900; letter-spacing: .05em; }
.bank__holder { font-size: 14px; }
.receipt-preview { width: 100%; max-height: 260px; object-fit: contain; border: 2px solid var(--line); border-radius: 12px; background: var(--card); }

.done { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-block: 6px; text-align: center; }
.done__icon { display: grid; place-items: center; width: 64px; height: 64px; border: 2.5px solid var(--line); border-radius: 20px; background: var(--green); box-shadow: 4px 4px 0 var(--sh); font-size: 30px; font-weight: 900; }
.done__text { font-size: 17px; font-weight: 800; }
.creds { width: 100%; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; box-shadow: none; text-align: right; }
.creds__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.creds__row b { font-size: 18px; letter-spacing: .06em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
