/* همزاد — دموی معرفی؛ طراحی موبایل‌اول، روشن */
@font-face {
  font-family: 'Estedad';
  src: url('../fonts/Estedad-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --brand: #B8001F;
  --brand-hover: #930019;
  --brand-soft: rgba(184, 0, 31, .07);
  --ink: #1a1d1b;
  --ink-2: #5b6561;
  --surface: #ffffff;
  --surface-2: #f6f6f4;
  --border: #e7e9e4;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Estedad', sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--surface-2);
  -webkit-text-size-adjust: 100%;
}

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

.wrap { width: min(1120px, 100% - clamp(24px, 6vw, 48px)); margin-inline: auto; }

/* top bar */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand b { font-size: 19px; font-weight: 800; }
.brand img { width: 30px; height: 32px; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500;
  padding: 10px 12px; border-radius: 10px; white-space: nowrap; min-height: 44px;
  display: inline-flex; align-items: center;
}
.nav a:hover { color: var(--brand); background: var(--brand-soft); }

/* hero */
.hero {
  background: linear-gradient(180deg, #fff 0%, var(--surface-2) 100%);
  border-bottom: 1px solid var(--border);
}
.hero__grid {
  display: grid; gap: clamp(20px, 4vw, 44px);
  padding-block: clamp(24px, 5vw, 56px);
  align-items: center;
}
@media (min-width: 760px) { .hero__grid { grid-template-columns: 5fr 6fr; } }
.hero h1 { margin: 0; font-size: clamp(2rem, 7vw, 3.2rem); font-weight: 900; }
.hero__sub { margin: 10px 0 0; font-size: clamp(1.05rem, 3vw, 1.25rem); color: var(--ink-2); }
.hero__benefit { margin: 14px 0 0; font-weight: 600; color: var(--brand); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 22px; border-radius: 12px;
  background: var(--brand); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 15.5px; border: 1px solid var(--brand);
}
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn--ghost { background: #fff; color: var(--brand); }
.btn--ghost:hover { background: var(--brand-soft); }

/* window frame */
.window {
  margin: 0; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(16, 20, 19, .04), 0 24px 48px -32px rgba(16, 20, 19, .35);
  overflow: hidden;
}
.window__bar {
  display: flex; gap: 6px; padding: 10px 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.window__bar i { width: 10px; height: 10px; border-radius: 50%; background: #dcdcd7; }
.window a { display: block; }
.window img { width: 100%; }
figcaption { padding: 10px 14px; font-size: 13.5px; color: var(--ink-2); border-top: 1px solid var(--border); }

/* sections */
.sec { padding-block: clamp(28px, 6vw, 56px) 0; }
.sec:last-of-type { padding-bottom: clamp(32px, 6vw, 64px); }
h2 { margin: 0; font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 800; }
.sec__lead { margin: 8px 0 22px; color: var(--ink-2); }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.cards--tight { gap: 12px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px;
}
.card h3 { margin: 10px 0 6px; font-size: 17px; font-weight: 800; }
.card p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.ico {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft);
  display: inline-flex; align-items: center; justify-content: center;
}
.ico svg { fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.steps li {
  counter-increment: step; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px 16px 18px;
  display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start;
}
.steps li::before {
  grid-row: span 2;
  content: counter(step, persian);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 19px;
  display: inline-flex; align-items: center; justify-content: center;
}
.steps b { font-size: 16.5px; }
.steps span { color: var(--ink-2); font-size: 14.5px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* supported lists */
.lists { display: grid; gap: 16px; }
@media (min-width: 760px) { .lists { grid-template-columns: repeat(3, 1fr); } }
.list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.list h3 { margin: 0 0 10px; font-size: 16.5px; font-weight: 800; color: var(--brand); }
.list ul { margin: 0; padding: 0; list-style: none; }
.list li { padding-block: 8px; border-bottom: 1px dashed var(--border); font-size: 14.5px; color: var(--ink-2); }
.list li:last-child { border-bottom: 0; }

/* gallery */
.gallery { display: grid; gap: 16px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; } }

/* FAQ */
details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  margin-bottom: 10px; overflow: hidden;
}
summary {
  cursor: pointer; padding: 14px 18px; font-weight: 700; font-size: 15.5px;
  min-height: 44px; display: flex; align-items: center; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; margin-inline-start: auto; color: var(--brand); font-size: 20px; }
details[open] summary::after { content: '−'; }
details p { margin: 0; padding: 0 18px 14px; color: var(--ink-2); font-size: 14.5px; }

/* footer */
.footer { margin-top: clamp(32px, 6vw, 64px); background: #141817; color: #cfd4d1; }
.footer__row {
  display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between;
  padding-block: 18px; font-size: 13.5px;
}

/* gentle fade only, guarded */
@media (prefers-reduced-motion: no-preference) {
  .card, .window { animation: fade .5s ease-out both; }
  @keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
