/* ابزارهای رایگان — هم‌زبان بصری صفحه آموزش */

.tools-page {
  --tl-brand: var(--ld-brand, #e50098);
  --tl-brand-2: #8b2cf5;
  --tl-gradient: linear-gradient(135deg, #e50098 0%, #b11fd1 55%, #8b2cf5 100%);
  background: #fff;
  color: var(--ld-text, #242132);
}

.tl-wrap {
  width: min(90%, 1400px);
  margin-inline: auto;
}

.tl-hero {
  position: relative;
  overflow-x: clip;
  isolation: isolate;
  background:
    radial-gradient(circle at 1px 1px, rgba(229, 0, 152, 0.09) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(180deg, #fff6fb 0%, #fbf7ff 62%, #ffffff 100%);
}

.tl-hero__deco {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.tl-hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}

.tl-hero__blob--a {
  width: 520px;
  height: 520px;
  inset-block-start: -160px;
  inset-inline-end: -140px;
  background: rgba(229, 0, 152, 0.28);
}

.tl-hero__blob--b {
  width: 460px;
  height: 460px;
  inset-block-end: -220px;
  inset-inline-start: -120px;
  background: rgba(139, 44, 245, 0.2);
}

.tl-hero__stitch {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 18%;
  width: 100%;
  height: 220px;
  fill: none;
  stroke: rgba(229, 0, 152, 0.22);
  stroke-width: 2;
  stroke-dasharray: 8 10;
}

.tl-hero__inner {
  width: min(90%, 1400px);
  margin-inline: auto;
  padding-block: calc(var(--space-10) + 28px) var(--space-8);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 4vw, 72px);
}

.tl-hero--single {
  background: #fff;
}

.tl-hero--single .tl-hero__inner {
  align-items: center;
  padding-block-end: clamp(12px, 2vw, 28px);
}

.tl-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.tl-hero__facts li {
  padding: 6px 12px;
  border-radius: 999px;
  background: #f6f4f7;
  color: var(--ld-text, #242132);
  font-size: 0.8125rem;
  font-weight: 700;
}

.tl-hero--single .tl-hero__visual {
  padding: 0;
}

.tl-hero--single .tl-hero__shot {
  width: min(100%, 460px);
  margin-inline: auto;
}

.tl-hero__content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tl-crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--ld-text-muted, #6b6577);
}

.tl-crumb a {
  color: var(--ld-text-muted, #6b6577);
  text-decoration: none;
}

.tl-crumb a:hover,
.tl-crumb [aria-current="page"] {
  color: var(--tl-brand);
  font-weight: 600;
}

.tl-crumb__sep {
  color: #cfc6d6;
}

.tl-eyebrow {
  margin: 0;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(229, 0, 152, 0.14);
  color: var(--tl-brand);
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(229, 0, 152, 0.08);
}

.tl-eyebrow .icon {
  width: 16px;
  height: 16px;
  font-size: 16px;
}

.tl-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ld-text, #242132);
}

.tl-hero__accent {
  background: var(--tl-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tl-lead {
  margin: 0;
  max-width: 38rem;
  color: var(--ld-text-muted, #6b6577);
  font-size: 1.0625rem;
  line-height: 2;
}

.tl-hero__quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
}

.tl-hero__quick-label {
  color: var(--ld-text-muted, #6b6577);
  font-weight: 600;
}

.tl-hero__quick ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tl-hero__quick a {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--ld-border, #e8e2ec);
  color: var(--ld-text, #242132);
  text-decoration: none;
}

.tl-hero__quick a:hover {
  border-color: var(--tl-brand);
  color: var(--tl-brand);
}

.tl-hero__visual {
  position: relative;
  padding: 36px 28px 18px;
}

.tl-hero__frame {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120px 80px at 20% 20%, rgba(255, 255, 255, 0.8), transparent 70%),
    linear-gradient(160deg, #fff 0%, #ffe4f4 100%);
  box-shadow: 0 30px 70px rgba(139, 44, 245, 0.18);
  transform: rotate(-2deg);
}

.tl-hero__shot {
  width: min(100%, 460px);
  height: auto;
  display: block;
}

.tl-float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 40px rgba(36, 33, 50, 0.14);
  animation: tl-float 6s ease-in-out infinite;
}

.tl-float strong,
.tl-float em {
  display: block;
  font-style: normal;
}

.tl-float strong {
  font-size: 0.875rem;
  font-weight: 800;
}

.tl-float em {
  font-size: 0.75rem;
  color: var(--ld-text-muted, #6b6577);
}

.tl-float__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  background: rgba(229, 0, 152, 0.1);
  color: var(--tl-brand);
}

.tl-float__icon .icon {
  width: 20px;
  height: 20px;
  font-size: 20px;
}

.tl-float--free {
  inset-block-start: 0;
  inset-inline-start: -8px;
}

.tl-float--size {
  inset-block-end: 24%;
  inset-inline-end: -8px;
  animation-delay: -2s;
}

.tl-float--time {
  inset-block-end: 0;
  inset-inline-start: 12%;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 210px;
  animation-delay: -4s;
}

.tl-float__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.tl-float__row em {
  color: var(--tl-brand);
  font-weight: 800;
}

.tl-float__bar {
  display: block;
  height: 7px;
  border-radius: 99px;
  background: #f1eaf5;
  overflow: hidden;
}

.tl-float__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--tl-gradient);
}

@keyframes tl-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.tl-stats {
  list-style: none;
  margin: 0 auto;
  padding: 20px 24px;
  width: min(90%, 1400px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--ld-border, #e8e2ec);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(36, 33, 50, 0.07);
  transform: translateY(50%);
  position: relative;
  z-index: 2;
}

.tl-stats__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tl-stats__item + .tl-stats__item {
  border-inline-start: 1px dashed var(--ld-border, #e8e2ec);
  padding-inline-start: 16px;
}

.tl-stats__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(229, 0, 152, 0.08);
  color: var(--tl-brand);
  flex-shrink: 0;
}

.tl-stats__icon .icon {
  width: 22px;
  height: 22px;
  font-size: 22px;
}

.tl-stats__text {
  display: flex;
  flex-direction: column;
  font-size: 0.8125rem;
  color: var(--ld-text-muted, #6b6577);
  line-height: 1.5;
}

.tl-stats__text strong {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ld-text, #242132);
}

.tl-hero:has(.tl-stats) + .tl-board {
  padding-block-start: calc(var(--space-10) + 52px);
}

.tl-board {
  padding-block: 8px clamp(48px, 8vw, 96px);
}

@media (max-width: 1023px) {
  .tl-hero__inner {
    grid-template-columns: 1fr;
  }

  .tl-hero__visual {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }

  .tl-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tl-stats__item:nth-child(3) {
    border-inline-start: 0;
    padding-inline-start: 0;
  }
}

@media (max-width: 640px) {
  .tl-stats {
    transform: none;
    margin-block: 24px 8px;
  }

  .tl-stats__item + .tl-stats__item {
    border-inline-start: 0;
    padding-inline-start: 0;
  }

  .tl-hero:has(.tl-stats) + .tl-board {
    padding-block-start: 12px;
  }

  .tl-float--free,
  .tl-float--size {
    inset-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tl-float {
    animation: none;
  }
}

.tl-board__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.tl-board__head h2,
.tl-next h2,
.tl-card h3 {
  margin: 0;
  color: var(--ld-text, #242132);
}

.tl-board__head h2 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 800;
}

.tl-board__count {
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #f0d7e7;
  color: var(--ld-text-muted, #6b6577);
  font-size: 0.875rem;
  white-space: nowrap;
}

.tl-board__count strong {
  color: var(--ld-brand, #e50098);
  font-size: 1.05rem;
}

.tl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tl-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 28px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(155deg, rgba(229, 0, 152, 0.55), rgba(255, 214, 236, 0.2) 42%, rgba(122, 47, 134, 0.4)) border-box;
  box-shadow: 0 18px 40px rgba(58, 22, 48, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.tl-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(229, 0, 152, 0.14);
}

.tl-card__art {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 12px 8px 0;
}

.tl-card__art--shrink {
  background:
    radial-gradient(120px 80px at 20% 20%, rgba(255, 255, 255, 0.8), transparent 70%),
    linear-gradient(160deg, #fff6fb 0%, #ffd9ee 100%);
}

.tl-card__art--dxf {
  background:
    radial-gradient(140px 90px at 80% 10%, rgba(255, 255, 255, 0.75), transparent 70%),
    linear-gradient(160deg, #f8f1ff 0%, #ffe3f3 100%);
}

.tl-illu {
  width: min(100%, 420px);
  height: auto;
  display: block;
}


.tl-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 24px;
}

.tl-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tl-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(229, 0, 152, 0.1);
  color: var(--ld-brand, #e50098);
  font-size: 0.75rem;
  font-weight: 800;
}

.tl-num {
  color: #d7c3d0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.tl-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
}

.tl-card h3 a {
  color: inherit;
  text-decoration: none;
}

.tl-card h3 a:hover {
  color: var(--ld-brand, #e50098);
}

.tl-open {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ld-brand, #e50098);
  color: #fff;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 800;
}

.tl-open:hover {
  background: var(--ld-brand-hover, #c50087);
}

.tl-card p {
  margin: 0;
  color: var(--ld-text-muted, #6b6577);
  font-size: 0.95rem;
  line-height: 1.85;
}

.tl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tl-chips li {
  padding: 5px 10px;
  border-radius: 999px;
  background: #faf7f9;
  color: var(--ld-text, #242132);
  font-size: 0.78rem;
  font-weight: 600;
}

.tl-soon {
  align-self: flex-start;
  margin-top: auto !important;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px dashed #e50098;
  color: var(--ld-brand, #e50098) !important;
  font-size: 0.8125rem !important;
  font-weight: 800;
  line-height: 1.2 !important;
}

.tl-next {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1.5px dashed #efc6df;
  border-radius: 22px;
  background: linear-gradient(90deg, #fff, #fff8fc);
}

.tl-next__mark {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #fff;
  color: var(--ld-brand, #e50098);
  box-shadow: 0 8px 20px rgba(229, 0, 152, 0.12);
}

.tl-next__mark .icon {
  width: 22px;
  height: 22px;
  font-size: 22px;
}

.tl-next h2 {
  font-size: 1.05rem;
  font-weight: 800;
}

.tl-next p {
  margin: 4px 0 0;
  color: var(--ld-text-muted, #6b6577);
  font-size: 0.9rem;
  line-height: 1.7;
}

@media (max-width: 820px) {
  .tl-grid {
    grid-template-columns: 1fr;
  }

  .tl-hero h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .tl-wrap {
    width: min(1120px, calc(100% - 24px));
  }

  .tl-board__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .tl-card {
    border-radius: 22px;
  }

  .tl-card__art {
    min-height: 180px;
  }

  .tl-card__body {
    padding: 18px 16px 20px;
  }

  .tl-next {
    align-items: flex-start;
  }

  .tl-perks li {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tl-card {
    transition: none;
  }

  .tl-card:hover {
    transform: none;
  }
}

/* ── محاسبه آبرفت ── */
.tl-calc {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.tl-panel {
  border: 1px solid #f0e2ea;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(58, 22, 48, 0.06);
}

.tl-form {
  padding: 22px;
}

.tl-axis {
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.tl-axis + .tl-axis {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #f3e7ee;
}

.tl-axis h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ld-text, #242132);
}

.tl-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tl-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.tl-field span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ld-text, #242132);
}

.tl-field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: #f4f2f5;
  box-shadow: none;
  color: var(--ld-text, #242132);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
}

.tl-field input:focus {
  outline: none;
  background: #efeaf1;
}

.tl-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tl-btn {
  appearance: none;
  border: 1.5px solid var(--ld-brand, #e50098);
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--ld-brand, #e50098);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

.tl-btn:hover {
  background: var(--ld-brand-hover, #c50087);
}

.tl-btn--ghost {
  background: #fff;
  color: var(--ld-brand, #e50098);
}

.tl-btn--ghost:hover {
  background: rgba(229, 0, 152, 0.08);
}

.tl-results {
  position: sticky;
  top: 92px;
  padding: 22px;
  background:
    radial-gradient(280px 160px at 100% 0%, rgba(229, 0, 152, 0.16), transparent 70%),
    linear-gradient(180deg, #fff, #fff5fa);
}

.tl-results h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
}

.tl-results__lead {
  margin: 0 0 16px;
  color: var(--ld-text-muted, #6b6577);
  font-size: 0.9rem;
  line-height: 1.7;
}

.tl-result + .tl-result {
  margin-top: 12px;
}

.tl-result {
  padding: 14px;
  border-radius: 18px;
  background: #fff7fb;
}

.tl-result p {
  margin: 0;
}

.tl-result__label {
  color: var(--ld-text-muted, #6b6577);
  font-size: 0.82rem;
  font-weight: 700;
}

.tl-result__value {
  margin-top: 4px;
  color: var(--ld-brand, #e50098);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  direction: ltr;
  text-align: right;
}

.tl-result__note {
  margin-top: 6px;
  color: var(--ld-text, #242132);
  font-size: 0.86rem;
  line-height: 1.6;
}

.tl-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.tl-copy article,
.tl-faq {
  padding: 22px;
  border: 1px solid #f0e2ea;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(58, 22, 48, 0.04);
}

.tl-copy article {
  border-inline-start: 4px solid #e50098;
}

.tl-faq {
  margin-top: 16px;
}

.tl-copy h2,
.tl-faq h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ld-text, #242132);
}

.tl-copy h3 {
  margin: 16px 0 8px;
  font-size: 1.02rem;
  font-weight: 800;
}

.tl-copy p,
.tl-copy li,
.tl-faq p {
  margin: 0;
  color: var(--ld-text-muted, #6b6577);
  font-size: 0.95rem;
  line-height: 1.9;
}

.tl-copy p + p,
.tl-copy ul,
.tl-copy ol {
  margin-top: 10px;
}

.tl-copy ul,
.tl-copy ol {
  margin-bottom: 0;
  padding-inline-start: 1.2rem;
}

.tl-faq details {
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff8fc;
}

.tl-faq details + details {
  margin-top: 10px;
}

.tl-faq summary {
  cursor: pointer;
  color: var(--ld-text, #242132);
  font-weight: 800;
}

.tl-faq details p {
  margin-top: 8px;
}

@media (max-width: 860px) {
  .tl-calc,
  .tl-fields,
  .tl-copy {
    grid-template-columns: 1fr;
  }

  .tl-results {
    position: static;
  }
}
