/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition:
    background 180ms var(--ease),
    color 180ms var(--ease),
    border-color 180ms var(--ease),
    transform 180ms var(--ease);
}

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

.btn-primary {
  background: var(--accent);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(10, 10, 10, 0.03);
}

.btn-ink {
  background: var(--ink);
  color: var(--cream);
}

.btn-ink:hover {
  background: #1a1a1a;
}

.btn-block {
  width: 100%;
}

/* —— Header (compacts on scroll) —— */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 249, 227, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    height 280ms var(--ease),
    background 280ms var(--ease),
    border-color 280ms var(--ease),
    box-shadow 280ms var(--ease);
}

.header.is-compact {
  height: var(--nav-h-compact);
  background: rgba(255, 249, 227, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px rgba(10, 10, 10, 0.04);
}

.header-inner {
  width: var(--wrap);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
}

.nav-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: width 280ms var(--ease), height 280ms var(--ease);
}

.header.is-compact .nav-brand img {
  width: 40px;
  height: 40px;
}

.nav-brand-text {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: font-size 280ms var(--ease);
}

.header.is-compact .nav-brand-text {
  font-size: 0.82rem;
}

html[lang="fa"] .nav-brand-text {
  letter-spacing: 0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.lang-link {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 1px;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.lang-link:hover {
  color: var(--accent);
}

html[lang="fa"] .lang-link {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
  font-size: 0.92rem;
}

html[lang="en"] .lang-link {
  font-family: var(--font-fa);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.95rem;
}

.header.is-compact .btn {
  min-height: 38px;
  padding: 0.45rem 0.95rem;
  font-size: 0.7rem;
}

/* —— Hero —— */
.hero {
  padding-top: calc(var(--nav-h) + clamp(2.75rem, 7vw, 5rem));
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: 44rem;
}

.hero-brand {
  display: block;
  margin-bottom: 0.9rem;
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
}

html[lang="fa"] .hero-brand {
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2.35rem, 5.6vw, 4rem);
  max-width: 16ch;
  margin-bottom: 0.95rem;
}

html[lang="fa"] .hero h1 {
  max-width: 18ch;
  font-size: clamp(2rem, 5vw, 3.35rem);
}

.hero-lead {
  max-width: 38ch;
  margin-bottom: 1.6rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.9vw, 1.18rem);
}

html[lang="fa"] .hero-lead {
  max-width: 44ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

/* —— Cycling ticker —— */
.ticker {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  max-width: 34rem;
  min-height: 52px;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--accent);
  color: var(--cream);
  overflow: hidden;
}

.ticker-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 0 4px rgba(255, 249, 227, 0.25);
  animation: soft-pulse 1.6s var(--ease) infinite;
}

.ticker-track {
  min-width: 0;
  overflow: hidden;
}

.ticker-text {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  transition: transform 320ms var(--ease), opacity 280ms var(--ease);
}

html[lang="fa"] .ticker-text {
  font-family: var(--font-fa);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.92rem;
}

.ticker-text.is-out {
  opacity: 0;
  transform: translateY(-10px);
}

.ticker-text.is-in {
  opacity: 0;
  transform: translateY(10px);
}

.ticker-dots {
  display: flex;
  gap: 0.3rem;
}

.ticker-dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 249, 227, 0.35);
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}

.ticker-dots button.is-on {
  background: var(--cream);
  transform: scale(1.15);
}

/* —— Why —— */
.why {
  border-bottom: 1px solid var(--line);
}

.why-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.why-copy .label {
  margin-bottom: 0.55rem;
}

.why-copy h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.85rem);
  margin-bottom: 0.85rem;
  max-width: 18ch;
}

html[lang="fa"] .why-copy h2 {
  max-width: 22ch;
}

.why-copy > p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36ch;
}

.why-preview {
  opacity: 1;
  transform: translateY(0) rotate(-1.2deg);
  transition: transform 700ms var(--ease);
}

@media (prefers-reduced-motion: no-preference) {
  html.js-ready .why-preview:not(.is-inview) {
    transform: translateY(18px) rotate(-1.2deg);
  }
}

.why-preview.is-inview {
  transform: translateY(0) rotate(-1.2deg);
}

.why-panel {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  background: var(--cream-soft);
  display: grid;
  gap: 0.55rem;
  box-shadow: 10px 12px 0 var(--accent);
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease);
}

.why-preview.is-inview:hover .why-panel,
.why-panel.is-step {
  transform: rotate(-2.4deg) translateY(-4px);
  box-shadow: 14px 16px 0 var(--accent);
}

.sample-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.sample-step-label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--muted);
}

html[lang="fa"] .sample-step-label {
  font-family: var(--font-fa);
  font-weight: 500;
  letter-spacing: 0;
}

.sample-controls {
  display: flex;
  gap: 0.35rem;
}

.sample-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--ink);
  transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}

.sample-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.num {
  unicode-bidi: isolate;
  direction: ltr;
  display: inline-block;
}

.why-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.45rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.why-row:last-of-type {
  border-bottom: 0;
}

.why-row strong {
  font-family: var(--font-ui);
  font-weight: 900;
}

html[lang="fa"] .why-row strong {
  font-family: var(--font-fa);
  font-weight: 500;
}

.why-row.is-accent {
  color: var(--accent);
}

.why-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin-top: 0.35rem;
}

.why-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}

.why-caption {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* —— Features: Split Stage —— */
.features {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, transparent, rgba(187, 58, 37, 0.04) 40%, transparent);
}

.split-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.15rem, 2.8vw, 1.85rem);
  align-items: stretch;
}

.stage-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  min-height: 100%;
  height: 100%;
  align-self: stretch;
}

.stage-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  text-align: start;
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream-soft);
  transition:
    border-color 220ms var(--ease),
    background 220ms var(--ease),
    color 220ms var(--ease),
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease);
}

.stage-item:hover {
  transform: translateX(-2px);
}

html[dir="ltr"] .stage-item:hover {
  transform: translateX(2px);
}

.stage-item.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--cream);
  box-shadow: 0 10px 28px rgba(187, 58, 37, 0.18);
  transform: translateX(-4px);
}

html[dir="ltr"] .stage-item.is-active {
  transform: translateX(4px);
}

.stage-index {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  line-height: 1.2;
}

.stage-item.is-active .stage-index {
  color: var(--cream);
}

html[lang="fa"] .stage-index {
  font-family: var(--font-fa);
  font-weight: 500;
  letter-spacing: 0;
}

.stage-item-copy {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.stage-item-copy strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
}

html[lang="fa"] .stage-item-copy strong {
  font-family: var(--font-fa);
  font-weight: 500;
  font-size: 1rem;
}

.stage-item-copy span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.stage-item.is-active .stage-item-copy span {
  color: rgba(255, 249, 227, 0.82);
}

.stage-frame {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream-soft);
  min-width: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.stage-frame.is-swap .stage-frame-inner {
  animation: stage-swap 320ms var(--ease);
}

.stage-frame-inner {
  padding: clamp(1.15rem, 2.4vw, 1.55rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1 1 auto;
}

.stage-kicker {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

html[lang="fa"] .stage-kicker {
  font-family: var(--font-fa);
  font-weight: 500;
  letter-spacing: 0;
}

.stage-title {
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

html[lang="fa"] .stage-title {
  font-family: var(--font-fa);
}

.stage-body {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36ch;
  line-height: 1.5;
}

.stage-slot {
  position: relative;
  margin-top: auto;
  min-height: 168px;
  height: 168px;
  flex: 0 0 168px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background:
    linear-gradient(160deg, rgba(187, 58, 37, 0.08), transparent 55%),
    var(--white);
  padding: 1.05rem;
  display: grid;
  align-content: space-between;
  overflow: hidden;
}

.stage-shot {
  display: none;
  gap: 0.85rem;
}

.stage-shot.is-on {
  display: grid;
}

.shot-caption {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

html[lang="fa"] .shot-caption {
  font-family: var(--font-fa);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.8rem;
}

.stage-slot-note {
  position: absolute;
  inset-inline-end: 0.85rem;
  bottom: 0.75rem;
  font-size: 0.72rem;
  color: rgba(10, 10, 10, 0.38);
}

.shot-settle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 72px;
}

.shot-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: soft-pulse 1.8s var(--ease) infinite;
}

.shot-dot.is-end {
  background: var(--ink);
  animation-delay: 0.35s;
}

.shot-rail {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.shot-rail i {
  display: block;
  height: 100%;
  width: 62%;
  background: var(--accent);
  animation: rail-fill 1.8s var(--ease) infinite alternate;
}

.shot-fees {
  display: grid;
  gap: 0.55rem;
  min-height: 72px;
  align-content: center;
}

.shot-fee-bar {
  height: 12px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.shot-fee-bar i {
  display: block;
  width: 15%;
  height: 100%;
  background: var(--accent);
}

.shot-fee-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.shot-tracks {
  display: grid;
  gap: 0.45rem;
  min-height: 72px;
  align-content: center;
}

.shot-tracks li {
  position: relative;
  padding-inline-start: 0.95rem;
  font-size: 0.9rem;
  color: var(--ink);
}

.shot-tracks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.shot-live {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 72px;
}

.shot-live-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: var(--accent);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

html[lang="fa"] .shot-live-chip {
  font-family: var(--font-fa);
  font-weight: 500;
  letter-spacing: 0;
}

.shot-wave {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(10, 10, 10, 0.12), var(--accent));
  background-size: 200% 100%;
  animation: wave-slide 2.4s linear infinite;
}

@keyframes stage-swap {
  from {
    opacity: 0.35;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rail-fill {
  from {
    width: 28%;
  }
  to {
    width: 78%;
  }
}

/* —— Calculator —— */
.calculator {
  border-bottom: 1px solid var(--line);
}

.calc-shell {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream-soft);
  padding: clamp(1.25rem, 3vw, 2rem);
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  min-width: 0;
}

.calc-controls {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
  width: 100%;
}

.calc-control {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding-block: 0.15rem;
}

.calc-control-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.calc-control-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}

.calc-control-help {
  color: var(--muted);
  font-size: 0.85rem;
  margin-inline-start: 0.35rem;
}

.calc-value {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--ink);
  white-space: nowrap;
}

html[lang="fa"] .calc-value {
  font-family: var(--font-fa);
  font-weight: 500;
}

.calc-value-unit {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
  margin-inline-start: 0.25rem;
}

.calc-revenue-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.calc-big-number .label {
  margin-bottom: 0.25rem;
}

.calc-revenue {
  font-family: var(--font-ui);
  font-size: clamp(1.65rem, 3.6vw, 2.3rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.2;
  transition: transform 160ms var(--ease), color 160ms var(--ease);
}

.calc-revenue.is-updating {
  color: var(--accent);
  transform: translateY(-1px);
}

html[lang="fa"] .calc-revenue {
  font-family: var(--font-fa);
  font-weight: 500;
}

.calc-yearly {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.calc-yearly-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.calc-yearly-value {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--ink);
  transition: color 160ms var(--ease);
}

.calc-yearly-value.is-updating {
  color: var(--accent);
}

html[lang="fa"] .calc-yearly-value {
  font-family: var(--font-fa);
  font-weight: 500;
}

.calc-breakdown {
  display: grid;
  gap: 0.75rem;
}

.calc-bar-row {
  display: grid;
  gap: 0.25rem;
}

.calc-bar-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
  gap: 0.75rem;
}

.calc-bar-label {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.calc-bar-value {
  font-family: var(--font-ui);
  font-weight: 900;
  color: var(--ink);
  transition: color 160ms var(--ease);
}

.calc-bar-value.is-updating {
  color: var(--accent);
}

html[lang="fa"] .calc-bar-value {
  font-family: var(--font-fa);
  font-weight: 500;
}

.calc-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  direction: ltr;
  unicode-bidi: isolate;
}

.calc-bar span {
  display: block;
  width: var(--bar, 0%);
  max-width: 100%;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  transform-origin: left center;
  transition: width 220ms var(--ease);
}

.calc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.2rem;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 180ms var(--ease), transform 160ms var(--ease);
  margin-top: 0.25rem;
  width: 100%;
}

html[lang="fa"] .calc-cta {
  font-family: var(--font-fa);
  font-weight: 500;
  letter-spacing: 0;
}

.calc-cta:hover {
  background: var(--accent-deep);
}

.calc-cta:active {
  transform: translateY(1px);
}

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 3px;
  margin: 0;
  border-radius: 999px;
  /* Keep fill + drag physically LTR even on RTL pages. */
  direction: ltr;
  writing-mode: horizontal-tb;
  unicode-bidi: isolate;
  background: linear-gradient(
    to right,
    var(--accent) var(--fill, 31%),
    var(--line) var(--fill, 31%)
  );
  outline: none;
  box-sizing: border-box;
}

html[dir="rtl"] .calc-slider {
  direction: ltr;
}

.calc-slider::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: transparent;
}

.calc-slider::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background: transparent;
  border: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8.5px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--accent);
  cursor: grab;
  box-sizing: border-box;
}

.calc-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--accent);
  cursor: grab;
  box-sizing: border-box;
}

.calc-range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.55rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--muted);
  direction: ltr;
  unicode-bidi: isolate;
}

html[lang="fa"] .calc-range-labels {
  font-family: var(--font-fa);
}

.calc-note {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 42rem;
  line-height: 1.55;
}

.calc-note::before {
  content: "i";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-ui);
  flex-shrink: 0;
  margin-top: 1px;
}

/* —— FAQ —— */
.faq-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.15rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
}

html[lang="fa"] .faq-item summary {
  font-family: var(--font-fa);
  font-weight: 500;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-ui);
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 200ms var(--ease);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 46rem;
  padding-bottom: 1.15rem;
  line-height: 1.55;
}

/* —— Modal —— */
.modal-root[hidden] {
  display: none;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.35);
  animation: fade-in 200ms var(--ease);
}

.modal-panel {
  position: absolute;
  inset-inline-end: 0;
  top: 0;
  bottom: 0;
  width: min(460px, 100%);
  background: var(--cream);
  border-inline-start: 1px solid var(--line);
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  overflow: auto;
  animation: slide-in 280ms var(--ease);
}

html[dir="rtl"] .modal-panel {
  animation-name: slide-in-rtl;
}

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.modal-title {
  font-size: 1.45rem;
  font-weight: 600;
}

.modal-step {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.2rem;
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 160ms var(--ease);
}

.modal-close:hover {
  background: rgba(10, 10, 10, 0.04);
}

.stepper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.stepper span {
  height: 2px;
  border-radius: 999px;
  background: var(--line);
}

.stepper span.is-on {
  background: var(--accent);
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.field label {
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

html[lang="fa"] .field label {
  font-family: var(--font-fa);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.8rem;
}

.field input {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--cream-soft);
  color: var(--ink);
}

.field input::placeholder {
  color: rgba(10, 10, 10, 0.4);
}

.field input:focus {
  border-color: var(--accent);
  outline: none;
}

.field-error {
  color: var(--accent);
  font-size: 0.82rem;
  min-height: 1.1em;
}

.modal-actions {
  display: flex;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.action-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: 104px;
  padding: 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--cream-soft);
  text-align: start;
  transition:
    border-color 160ms var(--ease),
    background 160ms var(--ease),
    transform 160ms var(--ease);
}

.action-tile:hover {
  border-color: var(--ink);
  background: var(--white);
}

.action-tile:active {
  transform: translateY(1px);
}

.action-tile strong {
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

html[lang="fa"] .action-tile strong {
  font-family: var(--font-fa);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.88rem;
}

.action-tile span:not(.tile-mark) {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.action-tile .tile-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 900;
}

.toast {
  position: fixed;
  inset-inline: 0;
  bottom: 1.15rem;
  z-index: 90;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.toast[hidden] {
  display: none;
}

.toast-inner {
  pointer-events: auto;
  background: var(--ink);
  color: var(--cream);
  padding: 0.65rem 0.95rem;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: fade-up 220ms var(--ease);
}

html[lang="fa"] .toast-inner {
  font-family: var(--font-fa);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.82rem;
}

/* —— Footer —— */
.footer {
  border-top: 1px solid var(--ink);
  padding-block: 2.5rem 1.75rem;
  background: var(--cream-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

html[lang="fa"] .footer-brand {
  font-family: var(--font-fa);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.footer-brand img {
  width: 40px;
  height: 40px;
}

.footer-brand-block p {
  color: var(--muted);
  max-width: 28ch;
  font-size: 0.95rem;
}

.footer-heading {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

html[lang="fa"] .footer-heading {
  font-family: var(--font-fa);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.85rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.footer-col a,
.footer-col button {
  font-size: 0.95rem;
  color: var(--ink);
  transition: color 160ms var(--ease);
}

.footer-col a:hover,
.footer-col button:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slide-in-rtl {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes soft-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.85);
  }
}

@keyframes wave-slide {
  from {
    background-position: 0% 0;
  }
  to {
    background-position: 200% 0;
  }
}

@media (max-width: 900px) {
  .why-grid,
  .split-stage,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stage-list {
    gap: 0.55rem;
    height: auto;
    min-height: 0;
  }

  .stage-item {
    flex: 0 0 auto;
    padding: 0.95rem 1rem;
  }

  .stage-frame {
    min-height: 0;
    height: auto;
  }

  .stage-slot {
    height: 150px;
    min-height: 150px;
    flex-basis: 150px;
  }

  .why-preview,
  .why-preview.is-inview {
    transform: none;
  }

  .why-preview.is-inview:hover .why-panel,
  .why-panel.is-step {
    transform: translateY(-3px) rotate(-1deg);
  }

  .why-panel {
    box-shadow: 8px 8px 0 var(--accent);
  }

  .stage-item:hover,
  .stage-item.is-active,
  html[dir="ltr"] .stage-item:hover,
  html[dir="ltr"] .stage-item.is-active {
    transform: none;
  }
}

@media (max-width: 760px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }

  .header .btn-primary span.btn-short {
    display: inline;
  }

  .header .btn-primary span.btn-full {
    display: none;
  }

  .action-grid {
    grid-template-columns: 1fr;
  }

  .ticker {
    grid-template-columns: auto 1fr;
  }

  .ticker-dots {
    display: none;
  }

  .stage-slot {
    min-height: 170px;
  }
}

@media (min-width: 761px) {
  .header .btn-primary span.btn-short {
    display: none;
  }
}
