/* Plugma static pages — tokens from docs/DESIGN.md */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Vazirmatn:wght@300;400;500;600;700&display=swap");

:root {
  --teal: #118a91;
  --teal-dark: #37545d;
  --surface: #e7fffc;
  --conf-high: #118a91;
  --conf-mid: #e8a020;
  --conf-low: #d94f3d;
  --conf-none: #9e9e9e;
  --conf-high-bg: #e7fffc;
  --conf-mid-bg: #fff8e7;
  --conf-low-bg: #fef2f0;
  --black: #0d1b1e;
  --dark: #37545d;
  --grey: #9e9e9e;
  --border: rgba(0, 0, 0, 0.07);
  --bg: #f4f6f5;
  --white: #ffffff;
  --grey-bg: #f5f5f5;
  --amber: #e8a020;
  --amber-bg: #fff8e7;
  --red: #d94f3d;
  --map-tone: #d0e8e2;
  --ink-deep: #0a2229;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  --shadow-fab: 0 3px 12px rgba(0, 0, 0, 0.14), 0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow-sheet: 0 -4px 24px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-pin: 0 4px 14px rgba(17, 138, 145, 0.4);
  --shadow-badge: 0 4px 12px rgba(17, 138, 145, 0.25);

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-2xl: 24px;
  --space-3xl: 32px;

  --font-fa: "Vazirmatn", Tahoma, sans-serif;
  --font-en: "Inter", system-ui, sans-serif;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
  background: var(--bg);
  color: var(--black);
  font-family: var(--font-fa);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.85;
  direction: rtl;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--teal-dark);
}

.ltr {
  direction: ltr;
  font-family: var(--font-en);
  unicode-bidi: isolate;
}

/* ——— Site chrome ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 0.5px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-link:hover {
  color: inherit;
}

.brand-link__logo {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--surface);
  color: var(--teal);
  font-weight: 600;
}

.site-footer {
  padding: 28px 16px 40px;
  text-align: center;
  color: var(--grey);
  font-size: 12px;
  font-weight: 300;
}

.site-footer__inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.site-footer__links a {
  font-size: 12px;
  font-weight: 500;
  color: var(--dark);
}

.site-footer__links a:hover {
  color: var(--teal);
}

/* ——— Page shell ——— */
.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* ——— Hero (about) ——— */
.hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 0 28px;
  padding: 48px 20px 56px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(17, 138, 145, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(232, 160, 32, 0.18), transparent 50%),
    linear-gradient(165deg, var(--ink-deep) 0%, #0f3a40 48%, #134e56 100%);
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.07) 0 2px, transparent 3px),
    radial-gradient(circle at 62% 18%, rgba(255, 255, 255, 0.06) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 78% 62%, rgba(255, 255, 255, 0.05) 0 2px, transparent 3px),
    radial-gradient(circle at 34% 72%, rgba(255, 255, 255, 0.05) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 52% 48%, rgba(255, 255, 255, 0.04) 0 1px, transparent 2px);
  pointer-events: none;
  animation: map-drift 18s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 28px;
  background: var(--bg);
  border-radius: 22px 22px 0 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
  justify-items: center;
  text-align: center;
}

.hero__brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: rise-in 0.7s var(--ease-out) both;
}

.hero__mark {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero__wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.2;
}

.hero__wordmark-en {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
}

.hero__wordmark-fa {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

.hero__title {
  margin: 0;
  font-size: clamp(22px, 4.5vw, 28px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
  animation: rise-in 0.7s var(--ease-out) 0.08s both;
}

.hero__lead {
  margin: 0;
  max-width: 34em;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.82);
  animation: rise-in 0.7s var(--ease-out) 0.16s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  animation: rise-in 0.7s var(--ease-out) 0.24s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  font-family: var(--font-fa);
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(17, 138, 145, 0.35);
}

.btn--primary:hover {
  color: var(--white);
  background: #0f7a80;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  outline: 1px solid rgba(255, 255, 255, 0.22);
}

.btn--ghost:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* ——— Doc hero (privacy) ——— */
.doc-hero {
  margin: 20px 0 24px;
  padding: 28px 20px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  animation: rise-in 0.55s var(--ease-out) both;
}

.doc-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), #1ab0b8, var(--amber));
}

.doc-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--conf-high-bg);
  border: 1px solid rgba(17, 138, 145, 0.2);
  color: var(--teal);
  font-size: 11px;
  font-weight: 500;
}

.doc-hero__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.4;
}

.doc-hero__meta {
  margin: 0;
  color: var(--grey);
  font-size: 12px;
  font-weight: 300;
}

.doc-hero__meta .ltr {
  font-weight: 500;
  color: var(--dark);
}

/* ——— Content card ——— */
.sheet {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 24px 18px 32px;
  animation: rise-in 0.55s var(--ease-out) 0.06s both;
}

@media (min-width: 640px) {
  .sheet {
    padding: 32px 28px 40px;
  }
}

.section {
  margin: 0 0 28px;
}

.section:last-child {
  margin-bottom: 0;
}

.section__label {
  display: block;
  margin: 0 0 6px;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  direction: ltr;
  text-align: right;
}

.section h2 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section h2 .sec-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section h2 .sec-icon svg {
  width: 16px;
  height: 16px;
}

.section p {
  margin: 0 0 12px;
  color: var(--black);
  font-weight: 400;
}

.section p:last-child {
  margin-bottom: 0;
}

.section ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.section li {
  position: relative;
  margin: 0 0 10px;
  padding: 10px 14px 10px 12px;
  background: var(--grey-bg);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-weight: 400;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.section li:hover {
  background: var(--surface);
  border-color: rgba(17, 138, 145, 0.18);
}

.section li strong {
  font-weight: 600;
  color: var(--black);
}

.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--conf-high-bg);
  border: 1px solid rgba(17, 138, 145, 0.2);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 400;
  color: var(--dark);
  margin: 0 0 24px;
}

.note svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--teal);
  margin-top: 2px;
}

.note--amber {
  background: var(--amber-bg);
  border-color: rgba(232, 160, 32, 0.35);
  color: #a06010;
}

.note--amber svg {
  color: var(--amber);
}

/* ——— Feature grid (about) ——— */
.feature-grid {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
}

@media (min-width: 560px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease,
    border-color 0.15s ease;
}

.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-fab);
  border-color: rgba(17, 138, 145, 0.25);
}

.feature__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--surface);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.feature__icon svg {
  width: 20px;
  height: 20px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
}

.feature p {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.7;
}

/* ——— Confidence strip ——— */
.conf-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.conf-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
}

.conf-badge__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.conf-badge__score {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  direction: ltr;
  unicode-bidi: isolate;
}

.conf-badge__pct {
  font-weight: 700;
  font-size: 11px;
  margin-inline-start: 1px;
}

.conf-badge__label {
  font-weight: 300;
  font-size: 12px;
}

.conf-badge--high {
  background: var(--conf-high-bg);
  border: 1px solid rgba(17, 138, 145, 0.2);
  color: var(--conf-high);
}

.conf-badge--mid {
  background: var(--conf-mid-bg);
  border: 1px solid rgba(232, 160, 32, 0.2);
  color: var(--conf-mid);
}

.conf-badge--low {
  background: var(--conf-low-bg);
  border: 1px solid rgba(217, 79, 61, 0.2);
  color: var(--conf-low);
}

/* ——— Split panels ——— */
.split {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

@media (min-width: 560px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.panel {
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--border);
}

.panel--yes {
  background: var(--conf-high-bg);
  border-color: rgba(17, 138, 145, 0.2);
}

.panel--no {
  background: var(--grey-bg);
}

.panel h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel--yes h3 {
  color: var(--teal);
}

.panel--no h3 {
  color: var(--dark);
}

.panel p {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.75;
}

.panel svg {
  width: 16px;
  height: 16px;
}

/* ——— Privacy TOC ——— */
.toc {
  margin: 0 0 24px;
  padding: 14px 16px;
  background: var(--grey-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.toc__title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
}

.toc ol {
  margin: 0;
  padding: 0 18px 0 0;
  columns: 1;
  gap: 24px;
}

@media (min-width: 640px) {
  .toc ol {
    columns: 2;
  }
}

.toc li {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 400;
  break-inside: avoid;
}

.toc a {
  font-weight: 500;
  color: var(--dark);
}

.toc a:hover {
  color: var(--teal);
}

.privacy-layout {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .privacy-layout {
    grid-template-columns: 200px 1fr;
    align-items: start;
  }

  .toc--sticky {
    position: sticky;
    top: 72px;
    margin: 0;
  }

  .toc--sticky ol {
    columns: 1;
  }
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
  border: none;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 8px;
}

.contact-row--center {
  justify-content: center;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid rgba(17, 138, 145, 0.2);
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
}

.contact-pill:hover {
  color: var(--teal-dark);
  background: #d4f7f3;
}

.contact-pill svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.contact-pill[href^="mailto"] {
  direction: ltr;
  font-family: var(--font-en);
}

.contact-pill--telegram {
  background: #e8f4fc;
  border-color: rgba(41, 161, 219, 0.28);
  color: #1a8bb8;
}

.contact-pill--telegram:hover {
  background: #d9eef9;
  color: #157399;
}

.contact-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  margin: 0 0 10px;
  padding: 0;
  background: none;
  border: none;
  font-weight: 400;
  color: var(--dark);
}

.contact-list li:hover {
  background: none;
  border: none;
}

.community-points {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.community-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  padding: 12px 14px;
  background: var(--grey-bg);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-weight: 400;
}

.community-points li:hover {
  background: var(--surface);
  border-color: rgba(17, 138, 145, 0.18);
}

.community-points__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.community-points__icon svg {
  width: 14px;
  height: 14px;
}

.note strong {
  font-weight: 700;
  color: var(--black);
}

/* ——— Map pin decoration ——— */
.pin-float {
  position: absolute;
  width: 28px;
  height: 38px;
  filter: drop-shadow(var(--shadow-pin));
  animation: pin-bob 3.2s ease-in-out infinite;
  pointer-events: none;
}

.pin-float--a {
  top: 18%;
  left: 12%;
  animation-delay: 0s;
}

.pin-float--b {
  top: 42%;
  right: 14%;
  width: 22px;
  height: 30px;
  opacity: 0.75;
  animation-delay: 0.8s;
}

.pin-float--c {
  bottom: 22%;
  left: 22%;
  width: 18px;
  height: 24px;
  opacity: 0.55;
  animation-delay: 1.4s;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pin-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes map-drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-8px, 6px);
  }
}

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