/* Self-contained on purpose: the app's styles.css is an app-shell stylesheet
   (it locks the page height and hides overflow), which is exactly wrong for a
   page that should scroll and be crawled. Same palette, different job. */
@font-face {
  font-family: Vazirmatn;
  src: url("../assets/fonts/vazirmatn-var.woff2") format("woff2-variations"),
       url("../assets/fonts/vazirmatn-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #0d1017;
  --bg-raise: #151a24;
  --bg-card: #1b212e;
  --line: #262e3d;
  --text: #e8ecf4;
  --muted: #8e98ab;
  --accent: #ffd166;
  --good: #2fd67a;
  --radius: 16px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(1100px 600px at 80% -10%, #1a2233 0%, transparent 60%), var(--bg);
  color: var(--text);
  font: 16px/1.85 Vazirmatn, ui-sans-serif, -apple-system, "Segoe UI", Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(100% - 2.5rem, 1060px); margin-inline: auto; }

header.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; }
.brand span { font-size: 1.4rem; }

.btn {
  display: inline-block; padding: .85rem 1.6rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #20180a; }
.btn-primary:hover { background: #ffdb8a; text-decoration: none; }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--bg-raise); }
.btn-ghost:hover { border-color: var(--accent); text-decoration: none; }

.hero { padding: clamp(3rem, 9vw, 6rem) 0 3.5rem; }
.hero h1 {
  margin: 0 0 1.1rem; font-size: clamp(2rem, 5.5vw, 3.3rem); line-height: 1.35; font-weight: 800;
  letter-spacing: -0.01em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(1.05rem, 2.3vw, 1.3rem); color: var(--muted); max-width: 62ch; margin: 0 0 2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.cta-note { color: var(--muted); font-size: .9rem; }

section { padding: 3.2rem 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 0 0 .6rem; font-weight: 800; }
section > .wrap > p.intro { color: var(--muted); max-width: 68ch; margin: 0 0 2rem; }

.cards { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin: .2rem 0 .5rem; font-size: 1.15rem; font-weight: 700; }
.card p { margin: 0; color: var(--muted); }
.card .ico { font-size: 1.7rem; line-height: 1; }

ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
ol.steps li {
  counter-increment: step; background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem 1.4rem 1.25rem 1.4rem;
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
}
ol.steps li::before {
  content: counter(step, persian);
  background: var(--accent); color: #20180a; font-weight: 800;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 1rem;
}
ol.steps h3 { margin: 0 0 .25rem; font-size: 1.08rem; }
ol.steps p { margin: 0; color: var(--muted); }

.split { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
ul.ticks li { padding-inline-start: 1.9rem; position: relative; color: var(--muted); }
ul.ticks li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: 0;
  color: var(--good); font-weight: 800;
}
ul.ticks li strong { color: var(--text); font-weight: 700; }

.money { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.money .figure { font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 800; color: var(--accent); line-height: 1.2; }
.money .figure small { display: block; font-size: .95rem; font-weight: 500; color: var(--muted); }

details.faq {
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-raise);
  padding: 1rem 1.2rem; margin-bottom: .8rem;
}
details.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: left; color: var(--accent); font-weight: 800; }
details.faq[open] summary::after { content: "−"; }
details.faq p { color: var(--muted); margin: .8rem 0 .2rem; }

.final { text-align: center; }
.final h2 { margin-bottom: .8rem; }
.final p { color: var(--muted); max-width: 55ch; margin-inline: auto; margin-bottom: 1.8rem; }

footer.site { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: .9rem; }
footer.site nav { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-bottom: .8rem; }

/* Moved out of inline attributes: the CSP allows styles from files only. */
header.top > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.split h3 { margin-top: 0; }
.cta-row.center { justify-content: center; }
footer.site .tagline { margin: 0; }
