/* Per-trade SEO landing pages (/site/<slug>); builds on landing.css. */
.t-hero {
  position: relative;
  padding: 140px 0 70px;
  overflow: hidden;
}
.t-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.t-hero h1 {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.25;
  margin: 14px 0 18px;
}
.t-lead {
  font-size: 17px;
  line-height: 2;
  opacity: 0.82;
  margin: 0 0 28px;
}
.crumbs {
  display: flex;
  gap: 8px;
  font-size: 13px;
  opacity: 0.65;
}
.crumbs a {
  color: inherit;
}
.t-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  font-size: 14px;
  opacity: 0.75;
}
.t-trust li::before {
  content: "✓ ";
  color: #a78bfa;
}
.t-shot {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  background: #fff;
  transition: transform 0.4s;
}
.t-shot:hover {
  transform: translateY(-4px);
}
.t-shot .preview {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}
.t-shot .preview iframe {
  height: 900px;
  border: 0;
  pointer-events: none;
}
.t-feats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.t-feats article {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
}
.t-feats h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.t-feats p {
  margin: 0;
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.8;
}
.t-body {
  max-width: 760px;
  margin: 36px auto 0;
  font-size: 16px;
  line-height: 2.1;
  opacity: 0.85;
}
.t-body p + p {
  margin-top: 14px;
}
.t-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: st;
}
.t-steps li {
  counter-increment: st;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: grid;
  gap: 6px;
}
.t-steps li::before {
  content: counter(st, persian);
  font-size: 28px;
  font-weight: 800;
  color: #a78bfa;
}
.t-steps span {
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.8;
}
.t-others {
  margin: 48px 0 64px;
  text-align: center;
}
.t-others div,
.foot-trades {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
.t-others a,
.foot-trades a {
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: inherit;
  opacity: 0.8;
  text-decoration: none;
}
.t-others a:hover,
.foot-trades a:hover {
  opacity: 1;
  border-color: #a78bfa;
}
@media (max-width: 900px) {
  .t-hero {
    padding-top: 110px;
  }
  .t-hero-grid,
  .t-feats,
  .t-steps {
    grid-template-columns: 1fr;
  }
  .t-feats,
  .t-steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .t-feats,
  .t-steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .crumbs {
    align-items: center;
    gap: 4px;
    margin-inline-start: -10px;
  }
  .crumbs a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0 10px;
  }
  .t-others {
    margin: 40px 0 48px;
  }
  .t-others div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .t-others a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 8px 16px;
    border-radius: 14px;
    font-size: 14px;
    text-align: start;
    background: rgba(255, 255, 255, 0.03);
  }
  .t-others a::after {
    content: "‹";
    font-size: 20px;
    opacity: 0.5;
  }
  .t-others a:active {
    background: rgba(255, 255, 255, 0.1);
  }
}

/* ---------- Round 2: compact phone layout ---------- */
@media (max-width: 760px) {
  .t-hero { padding: 68px 0 12px; }
  .t-hero-grid { gap: 12px; }
  .crumbs { font-size: 12.5px; }
  .t-hero h1 { font-size: 26px; line-height: 1.4; margin: 0 0 8px; }
  .t-lead {
    font-size: 14.5px;
    line-height: 1.8;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .t-hero .hero-cta { margin-top: 0; }
  .t-hero .hero-cta .btn { font-size: 13.5px; line-height: 1.5; white-space: normal; text-align: center; }
  .t-trust { margin-top: 10px; gap: 4px 12px; font-size: 12.5px; }
  .t-shot { border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
  .t-shot .win-top { padding: 6px 10px; }
  .t-shot .preview { aspect-ratio: 16 / 7; }

  .t-feats,
  .t-steps { grid-template-columns: 1fr 1fr; gap: 10px; }
  .t-feats article,
  .t-steps li { padding: 12px; border-radius: 14px; gap: 2px; }
  .t-feats h3 { font-size: 15px; margin-bottom: 2px; }
  .t-feats p,
  .t-steps span {
    font-size: 13px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .t-steps li::before { font-size: 20px; line-height: 1.2; }
  .t-body { margin-top: 14px; font-size: 14.5px; line-height: 1.95; }

  .t-others { margin: 24px 0 20px; }
  .t-others h2 { font-size: 18px; }
  .t-others div { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
  .t-others a { min-height: 44px; padding: 6px 10px; font-size: 13px; line-height: 1.5; border-radius: 12px; }
  .t-others a::after { display: none; }
  .foot-trades { flex-wrap: nowrap; justify-content: flex-start; }
}

/* ---------- Round 3: breathing room on phones ---------- */
@media (max-width: 760px) {
  .t-feats,
  .t-steps { grid-template-columns: 1fr; gap: 12px; }
  .t-feats article { padding: 16px 16px 18px; }
  .t-feats h3 { font-size: 15.5px; margin-bottom: 4px; }
  .t-feats p,
  .t-steps span {
    font-size: 15px;
    line-height: 1.85;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
  .t-steps li {
    grid-template-columns: 36px 1fr;
    column-gap: 12px;
    row-gap: 2px;
    padding: 16px 16px 18px;
  }
  .t-steps li::before { grid-row: span 2; font-size: 24px; }
  .t-body { font-size: 15px; line-height: 1.95; }
}

/* static screenshot instead of a live demo iframe (see shots/previews.mjs) */
.t-shot .preview .shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ---------- Visual QA: steps start at the top; no lone card dangling at the end of a grid ---------- */
.t-steps li { align-content: start; }
@media (min-width: 901px) {
  .t-feats > :last-child:nth-child(3n + 1) { grid-column: 2; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .t-feats > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .t-others div > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
