/* Shared styles of simaneh.ir: the landing page (/) and the site pages (/about/, /contact/, /pricing/, /terms/,
   /privacy/, /refund/). Font URLs are relative to this file, so it works from every page depth. */
@font-face { font-family: "Yekan Bakh"; src: url(fonts/YekanBakhFaNum-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Yekan Bakh"; src: url(fonts/YekanBakhFaNum-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Yekan Bakh"; src: url(fonts/YekanBakhFaNum-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

/* Brand palette (brand/brand.json); the product is dark-only, like the app. */
:root {
  --night: #0D1524; --night-deep: #0A101C; --night-raised: #151F33; --night-high: #1B2740;
  --line: #2A3753; --ivory: #E3E8EE; --ivory-muted: #9AA4B2; --ivory-dim: #6E7A8C;
  --turquoise: #5FCBC5; --turquoise-deep: #2B9E98; --turquoise-ink: #173C40; --amber: #E9B949;
  --radius: 22px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--night); }
body {
  margin: 0; background: var(--night); color: var(--ivory);
  font-family: "Yekan Bakh", Tahoma, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.85;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
h1, h2, h3 { line-height: 1.35; margin: 0; text-wrap: balance; }
p { margin: 0; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--night) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  padding-top: env(safe-area-inset-top, 0px);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark { width: 36px; height: 36px; }
.brand .word { height: 22px; width: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 14px; font: inherit; font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer; border: 0; transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--turquoise); color: var(--night); box-shadow: 0 8px 28px -10px var(--turquoise); }
.btn-primary:hover { background: #74d6d1; }
.btn-ghost { background: transparent; color: var(--ivory); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--night-raised); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- sections ---------- */
section { padding-block: 72px; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h1, .section-head h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; }
.section-head p { margin-top: 10px; color: var(--ivory-muted); }
.kicker { color: var(--turquoise); font-weight: 600; font-size: 15px; letter-spacing: .02em; margin-bottom: 8px; display: block; }

/* ---------- footer ---------- */
footer { padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); color: var(--ivory-dim); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; width: 100%; }
.foot-links a { color: var(--ivory-muted); text-decoration: none; font-weight: 600; }
.foot-links a:hover, .foot-links a[aria-current="page"] { color: var(--turquoise); }
.foot-id { display: grid; gap: 4px; flex: 1 1 280px; }
.foot-id a { color: var(--ivory-muted); }
/* eNAMAD seal: filled at serve time; collapses when the server leaves it empty. */
.seal { flex: none; padding: 6px; border-radius: 14px; background: #fff; line-height: 0; }
.seal:empty { display: none; }
.seal img { max-width: 160px; max-height: 160px; }

/* ---------- site pages (about, contact, pricing, legal) ---------- */
.page { padding-block: 48px 72px; }
.prose { max-width: 760px; }
.page .section-head ~ * + .prose { margin-top: 48px; }
.prose h2 { font-size: 22px; font-weight: 700; margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; font-weight: 700; margin-top: 24px; }
.prose p, .prose li { color: var(--ivory-muted); }
.prose p { margin-top: 12px; }
.prose strong, .prose b { color: var(--ivory); font-weight: 600; }
.prose ul, .prose ol { margin: 12px 0 0; padding-inline-start: 22px; }
.prose li { margin-top: 6px; }
.prose li::marker { color: var(--turquoise); }
.prose a { color: var(--turquoise); }
.section-head .updated { color: var(--ivory-dim); font-size: 14px; margin-top: 10px; }
.callout {
  margin-top: 24px; padding: 22px 24px; border-radius: 18px; background: var(--night-raised);
  border: 1px solid color-mix(in srgb, var(--turquoise) 30%, var(--line));
}
.callout p:first-child { margin-top: 0; }
.facts { display: grid; gap: 12px; margin: 0; max-width: 760px; }
.facts div { display: grid; grid-template-columns: 180px 1fr; gap: 6px 18px; padding: 18px 22px; border-radius: 18px; background: var(--night-raised); border: 1px solid var(--line); }
.facts dt { color: var(--ivory-muted); font-size: 15px; }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.facts dd a { color: var(--turquoise); text-decoration: none; }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 980px; }
.price { padding: 24px; border-radius: var(--radius); background: var(--night-raised); border: 1px solid var(--line); }
.price h2 { font-size: 16px; font-weight: 600; color: var(--ivory-muted); }
.price .amount { margin-top: 8px; font-size: 26px; font-weight: 700; color: var(--turquoise); line-height: 1.5; }
.price p { margin-top: 8px; color: var(--ivory-muted); font-size: 15px; }
.price .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.price .chip { padding: 6px 14px; border-radius: 999px; background: var(--night-high); border: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--ivory); }
.status { margin-top: 14px; font-size: 14px; color: var(--ivory-dim); }

/* gentle entrance; content is fully visible without JS or with reduced motion */
.reveal { transition: opacity .7s ease, transform .7s ease; }
.js .reveal:not(.in) { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; } .js .reveal:not(.in) { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ---------- tablet & phone ---------- */
@media (max-width: 900px) {
  section { padding-block: 52px; }
  .page { padding-block: 32px 52px; }
  .prices { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .cta .btn { flex: 1 1 100%; }
  .brand .word { height: 18px; }
  .facts div { grid-template-columns: 1fr; }
}
