/* کنکور برتر public site. No external fonts or scripts: everything is served from our domain. */

@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Regular.e8e9648f5b8f.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Medium.24d05392e628.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Bold.4ac4426bc38f.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --brand: #1b6e5a;
  --brand-strong: #145646;
  --brand-soft: #e4f2ed;
  --on-brand: #ffffff;
  --accent: #e9a23b;
  --bg: #fafbfa;
  --surface: #ffffff;
  --surface-2: #f2f6f4;
  --text: #16201c;
  --muted: #56645e;
  --line: #dbe4e0;
  --shadow: 0 1px 2px rgb(16 32 26 / 6%), 0 8px 24px rgb(16 32 26 / 6%);
  --radius: 16px;
  --warn-bg: #fdf1dc;
  --warn: #8a5300;
  --danger: #b3261e;
  --ok: #1b6e5a;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #6fd0b0;
    --brand-strong: #93dec5;
    --brand-soft: #15302a;
    --on-brand: #0b1512;
    --accent: #f0b65d;
    --bg: #0e1412;
    --surface: #151d1a;
    --surface-2: #1a2420;
    --text: #e6eeea;
    --muted: #a0b0a9;
    --line: #27332f;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
    --warn-bg: #33270f;
    --warn: #f2c27a;
    --danger: #f2b8b5;
    --ok: #84d6bb;
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; }

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.45; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.85rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-right)) max(var(--gutter), env(safe-area-inset-left));
}
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.skip {
  position: absolute;
  inset-inline-start: 8px;
  top: -60px;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 10;
}
.skip:focus { top: 8px; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: .55em 1.4em;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--brand);
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--on-brand); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-strong); }
.btn-light { background: #fff; color: #145646; border-color: #fff; }
.btn-light:hover { background: #e4f2ed; border-color: #e4f2ed; color: #145646; }
.btn-small { min-height: 40px; padding: .35em 1.1em; font-size: .95rem; }
.btn .sub { font-weight: 400; font-size: .85em; opacity: .85; }

/* header */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.top-row {
  display: flex;
  align-items: center;
  gap: 12px 24px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.mark { width: 34px; height: 34px; flex: none; }
.mark rect { fill: #1b6e5a; }
.mark path { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); font-weight: 500; }
.top-cta[aria-current="page"] { background: var(--brand-strong); border-color: var(--brand-strong); }

/* phones: brand and button on the first row, the links below, scrolling sideways if needed */
@media (max-width: 719px) {
  .top-row { padding-block: 8px; min-height: 0; }
  .top-cta { margin-inline-start: auto; }
  .nav {
    order: 3;
    width: 100%;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 4px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1 0 100%;
  }
  .nav::-webkit-scrollbar { display: none; }
}

/* hero */
.hero { padding: clamp(32px, 6vw, 80px) 0 clamp(24px, 4vw, 56px); }
.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 720px) {
  .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
}
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 500;
  font-size: .9rem;
}
.lead { font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); color: var(--muted); max-width: 40em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.hero-note { font-size: .92rem; }

/* the decorative phone */
.phone {
  justify-self: center;
  width: min(300px, 82vw, 100%);
  aspect-ratio: 9 / 17;
  padding: 12px;
  border-radius: 40px;
  background: #1d2724;
  box-shadow: 0 30px 60px rgb(16 32 26 / 22%), inset 0 0 0 2px #33403b;
}
.screen {
  height: 100%;
  border-radius: 30px;
  background: var(--surface);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
@media (max-width: 899px) {
  .phone { width: min(260px, 72vw, 100%); aspect-ratio: 9 / 14; border-radius: 34px; }
  .screen { border-radius: 24px; padding: 18px 14px; }
}
.q-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.chip { font-size: .72rem; background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 0 10px; }
.timer { font-size: .78rem; color: var(--muted); font-weight: 500; }
.bar { display: block; height: 9px; border-radius: 9px; background: var(--line); }
.w50 { width: 50%; } .w55 { width: 55%; } .w60 { width: 60%; } .w65 { width: 65%; }
.w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; } .w90 { width: 90%; } .w95 { width: 95%; }
.choices { list-style: none; margin: 8px 0 4px; padding: 0; display: grid; gap: 8px; }
.choices li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
}
.choices .dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: .7rem;
  color: var(--muted);
}
.choices .bar { flex: 1 1 auto; max-width: 75%; }
.choices .right { border-color: var(--brand); background: var(--brand-soft); }
.choices .right .dot { background: var(--brand); color: var(--on-brand); }
.choices .right .bar { background: color-mix(in srgb, var(--brand) 35%, transparent); }
.explain { margin-top: auto; padding: 12px; border-radius: 14px; background: var(--surface-2); display: grid; gap: 8px; }
.explain p { margin: 0; font-size: .75rem; font-weight: 700; color: var(--brand); }

/* numbers */
.stats { padding-bottom: 16px; }
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 720px) { .stats-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats-row > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  gap: 2px;
  text-align: center;
}
.stats-row strong { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); color: var(--brand); line-height: 1.3; }
.stats-row span { color: var(--muted); font-size: .92rem; }

/* sections */
.section { padding: clamp(36px, 6vw, 72px) 0; }
.section-tint { background: var(--surface-2); }
.section-lead { color: var(--muted); margin-top: -.2em; max-width: 44em; }
.page-head { padding: clamp(32px, 5vw, 64px) 0 8px; }
.more { margin-top: 20px; }

.features {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  margin-top: 24px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.feature svg {
  width: 40px;
  height: 40px;
  padding: 8px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--brand-soft);
  stroke: var(--brand);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature p { color: var(--muted); margin: 0; }

.books {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  margin-top: 20px;
}
.book {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.book h3 { color: var(--brand); margin-bottom: .3em; }
.book ul { margin: 0; padding-inline-start: 1.2em; }

/* plans */
.plans {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  margin-top: 24px;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.plan h3 { margin-bottom: .2em; }
.plan .price { font-size: 1.7rem; font-weight: 700; color: var(--brand); margin: 0; line-height: 1.6; }
.plan .price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan-length { font-weight: 500; margin-bottom: .6em; }
.plan .muted { margin: auto 0 0; font-size: .92rem; }
.plan-free { box-shadow: none; background: var(--surface-2); }
.plan-buy { margin-top: 14px; align-self: stretch; }

.notice {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--text);
  border-inline-start: 4px solid var(--brand);
}

/* questions and answers */
.faq { display: grid; gap: 10px; margin-top: 16px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 18px;
}
.faq summary {
  cursor: pointer;
  font-weight: 500;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 700; font-size: 1.2em; line-height: 1.4; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); }

/* download */
.platforms {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.platform {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.platform h2 { margin-bottom: 0; }
.store-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.release-notes { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }

/* contact */
.contact { margin: 0 0 24px; display: grid; gap: 12px; }
.contact > div {
  display: grid;
  gap: 2px 16px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
@media (min-width: 560px) { .contact > div { grid-template-columns: 9em 1fr; } }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; font-weight: 500; }
.contact a[dir="ltr"] { unicode-bidi: isolate; }

/* long text */
.prose { font-size: 1.04rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.3rem; }
.prose ul { padding-inline-start: 1.3em; }
.prose li { margin-bottom: .4em; }

/* call to action */
.band { background: #1b6e5a; color: #fff; padding: clamp(28px, 5vw, 48px) 0; }
.band h2 { color: #fff; margin-bottom: .2em; }
.band p { margin: 0; opacity: .9; }
.band-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }

/* footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 36px 0 calc(20px + env(safe-area-inset-bottom));
  background: var(--surface);
}
.foot-grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1fr auto; align-items: start; } }
.foot-brand { font-weight: 700; margin-bottom: 0; }
.foot-links { display: grid; gap: 6px 28px; grid-template-columns: repeat(2, max-content); }
@media (max-width: 380px) { .foot-links { grid-template-columns: 1fr; } }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--brand); }
.foot-note { margin-top: 24px; font-size: .88rem; }
.enamad { display: inline-block; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* forms, buying and the account (billing app) */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 32px);
  margin-bottom: 20px;
}
.form-card h1 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin-bottom: .4em; }
.form-card h2 { font-size: 1.2rem; margin-bottom: .5em; }
.form-card label { display: block; font-weight: 500; margin: 18px 0 6px; }
.form-card input:not([type="hidden"]) {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: .5em .9em;
  font: inherit;
  font-size: 1.05rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--muted);
  border-radius: 12px;
}
.form-card input:focus { outline: 3px solid var(--brand-soft); border-color: var(--brand); }
.form-card input[aria-invalid="true"] { border-color: var(--danger); }
.form-card form .btn, .form-card > .btn { margin-top: 18px; }
.form-card button.btn { font: inherit; font-weight: 700; cursor: pointer; }
.field-error { color: var(--danger); margin: 6px 0 0; font-size: .95rem; }
.btn-wide { width: 100%; }
.destination { font-weight: 700; font-size: 1.15rem; text-align: right; margin: 0; }
.price-line { font-size: 1.6rem; font-weight: 700; color: var(--brand); margin: 0 0 12px; }
.price-line span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.notice-warn { background: var(--warn-bg); border-inline-start-color: var(--warn); }
.facts { margin: 16px 0; display: grid; gap: 10px; }
.facts > div {
  display: grid;
  grid-template-columns: minmax(7em, auto) 1fr;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.facts dd[dir="ltr"] { text-align: right; }
.result {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 12px;
  border-radius: 999px;
  font-weight: 700;
  background: var(--surface-2);
}
.result-ok { background: var(--brand-soft); color: var(--ok); }
.result-bad { background: var(--warn-bg); color: var(--warn); }
.buy-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.orders { list-style: none; margin: 0; padding: 0; }
.orders li + li { border-top: 1px solid var(--line); }
.orders a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 4px;
  color: var(--text);
  text-decoration: none;
}
.orders a:hover .order-title { color: var(--brand); }
.order-title { font-weight: 500; }
.order-meta { font-size: .92rem; }
.status-paid { color: var(--ok); font-weight: 500; }
.status-failed, .status-reversed { color: var(--danger); }
.signed-in { margin: 18px 0 0; }
@media (max-width: 479px) {
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
}
