/* ReplyFlow marketing site - dark tech theme, locked. One accent, one radius scale. */

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #171717;
  --line: #262626;
  --line-soft: #1e1e1e;
  --text: #f4f2ef;
  --text-2: #a8a8a8;
  --text-3: #7a7a7a;
  --accent: #ff8a1f;
  --accent-ink: #1a0e02;
  --accent-soft: rgba(255, 138, 31, 0.12);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  --wrap: 1240px;
  --section-y: clamp(72px, 9vw, 132px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-weight: 600;
}

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 24px;
}

.section { padding-block: var(--section-y); }

.mono {
  font-family: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.lead {
  color: var(--text-2);
  font-size: 1.0625rem;
  max-width: 62ch;
}

.eyebrow {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: #c8f477; }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--text-3); background: var(--bg-2); }
.btn-ghost:active { transform: translateY(1px); }

.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(11, 13, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line-soft);
  background: rgba(11, 13, 12, 0.92);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.0625rem;
}
.brand svg { width: 28px; height: 28px; flex: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
  color: var(--text-2);
}
.nav-links a { transition: color 0.2s var(--ease); }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; }
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-switch-btn:hover { border-color: var(--text-3); color: var(--text); }
.lang-switch-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  min-width: 150px;
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 60;
}
.lang-switch:hover .lang-switch-menu,
.lang-switch:focus-within .lang-switch-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-switch-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-2);
}
.lang-switch-menu a:hover { background: var(--bg-3); color: var(--text); }
.lang-switch-menu a.is-active { color: var(--accent); font-weight: 600; }
@media (max-width: 860px) {
  .lang-switch-btn span.lang-full { display: none; }
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-2);
}
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 16px 24px 24px;
  display: grid;
  gap: 4px;
}
.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--text-2);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu .btn { width: 100%; margin-top: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: clamp(56px, 7vw, 104px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% 40% 40% -10%;
  background: radial-gradient(closest-side, rgba(255, 138, 31, 0.09), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  max-width: 14ch;
}
.hero .lead { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-visual {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 12, 0) 45%, rgba(11, 13, 12, 0.72) 100%);
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line-soft);
  overflow: hidden;
  padding-block: 26px;
}
.marquee-track {
  display: flex;
  gap: 72px;
  width: max-content;
  align-items: center;
  animation: slide 34s linear infinite;
}
.marquee-track img {
  height: 26px;
  width: auto;
  opacity: 0.45;
  transition: opacity 0.3s var(--ease);
}
.marquee-track img:hover { opacity: 0.9; }
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 52px;
}
.tile {
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 30px;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.tile h3 { font-size: 1.25rem; margin-bottom: 10px; }
.tile p { color: var(--text-2); font-size: 0.9375rem; }
.tile-wide { grid-column: span 4; }
.tile-narrow { grid-column: span 2; }
.tile-half { grid-column: span 3; }

.tile-photo { padding: 0; min-height: 260px; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.tile-photo .tile-body {
  position: relative;
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(11, 13, 12, 0.1), rgba(11, 13, 12, 0.88));
}
.tile-accent {
  background: linear-gradient(150deg, rgba(255, 138, 31, 0.16), rgba(255, 138, 31, 0.02) 62%), var(--bg-2);
  border-color: rgba(255, 138, 31, 0.22);
}
.tile-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.tile-icon i { font-size: 21px; line-height: 1; }

/* ---------- Flow (how it works) ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 52px;
  border-top: 1px solid var(--line-soft);
}
.flow-item { padding: 34px 32px 34px 0; }
.flow-item + .flow-item { padding-left: 32px; border-left: 1px solid var(--line-soft); }
.flow-item h3 { font-size: 1.125rem; margin-bottom: 10px; }
.flow-item p { color: var(--text-2); font-size: 0.9375rem; }
.flow-num {
  font-family: "Geist Mono", monospace;
  color: var(--accent);
  font-size: 0.8125rem;
  display: block;
  margin-bottom: 16px;
}

/* ---------- Quote ---------- */
.quote-band { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.quote {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.quote blockquote {
  margin: 0;
  font-size: clamp(1.375rem, 2.8vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.28;
}
.quote figcaption {
  margin-top: 28px;
  color: var(--text-3);
  font-size: 0.875rem;
}
.quote figcaption strong { color: var(--text); font-weight: 600; }

/* ---------- Pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 52px;
}
.plan {
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 36px;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
}
.plan-featured { border-color: rgba(255, 138, 31, 0.3); background: var(--bg-3); }
.plan h3 { font-size: 1.125rem; }
.plan .price {
  font-size: 2.75rem;
  letter-spacing: -0.04em;
  margin: 18px 0 6px;
  font-weight: 600;
}
.plan .price span { font-size: 0.9375rem; color: var(--text-3); font-weight: 400; letter-spacing: 0; }
.plan ul {
  list-style: none;
  margin: 26px 0 32px;
  padding: 0;
  display: grid;
  gap: 12px;
  color: var(--text-2);
  font-size: 0.9375rem;
}
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li i { color: var(--accent); flex: none; font-size: 17px; margin-top: 4px; }
.plan .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 48px auto 0; }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  font-size: 1.0625rem;
  text-align: left;
  padding: 24px 40px 24px 0;
  cursor: pointer;
  position: relative;
}
.faq-q::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.faq-item.is-open .faq-q::after {
  transform: translateY(-20%) rotate(-135deg);
  border-color: var(--accent);
}
.faq-a { display: none; padding: 0 60px 26px 0; color: var(--text-2); font-size: 0.9375rem; }

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid rgba(255, 138, 31, 0.22);
  border-radius: var(--r-lg);
  padding: clamp(40px, 6vw, 72px);
  background: linear-gradient(140deg, rgba(255, 138, 31, 0.14), rgba(255, 138, 31, 0.02) 60%), var(--bg-2);
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 32px;
  align-items: center;
}
.cta-band h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); max-width: 18ch; }
.cta-band p { color: var(--text-2); margin-top: 14px; max-width: 52ch; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 64px 36px;
  color: var(--text-2);
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}
.footer-grid h4 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-grid a:hover { color: var(--text); }
.footer-note { max-width: 40ch; margin-top: 18px; color: var(--text-3); font-size: 0.875rem; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--text-3);
  font-size: 0.875rem;
}

/* ---------- Legal / article pages ---------- */
.page-head {
  padding-block: clamp(56px, 7vw, 92px) 0;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.page-head h1 { font-size: clamp(2.25rem, 4.6vw, 3.25rem); max-width: 18ch; }
.page-head .lead { margin-top: 20px; }
.page-meta { margin-top: 26px; color: var(--text-3); font-size: 0.875rem; }

.legal {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 96px;
  border-left: 1px solid var(--line-soft);
  padding-left: 20px;
}
.legal-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.legal-toc a { color: var(--text-3); font-size: 0.875rem; }
.legal-toc a:hover { color: var(--accent); }

.prose { max-width: 72ch; }
.prose h2 {
  font-size: 1.4375rem;
  margin-top: 52px;
  scroll-margin-top: 96px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.0625rem; margin-top: 30px; }
.prose p, .prose li { color: var(--text-2); font-size: 0.9688rem; }
.prose p { margin-top: 14px; }
.prose ul { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 9px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose .callout {
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--r-sm);
  background: var(--bg-2);
  padding: 20px 22px;
  margin-top: 26px;
}
.prose .callout p { margin-top: 0; }

/* ---------- About ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 52px;
}
.stat {
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 28px;
  background: var(--bg-2);
}
.stat b {
  display: block;
  font-family: "Geist Mono", monospace;
  font-size: 2rem;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.stat span { color: var(--text-3); font-size: 0.875rem; }
.stat b.entity {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.45;
  margin-top: 10px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 5 / 4;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

.people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 52px;
}
.person img {
  border-radius: var(--r);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line-soft);
}
.person h3 { font-size: 1rem; margin-top: 18px; }
.person span { color: var(--text-3); font-size: 0.875rem; }

/* ---------- Reveal ---------- */
/* Content is visible by default. The hidden start state only applies once JS has
   confirmed it can reveal it again, so a failed script never blanks the page. */
html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 16 / 10; }
  .hero h1 { max-width: 18ch; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .legal { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .bento { grid-template-columns: 1fr; }
  .tile-wide, .tile-narrow, .tile-half { grid-column: auto; }
  .flow { grid-template-columns: 1fr; }
  .flow-item { padding: 28px 0; border-top: 1px solid var(--line-soft); }
  .flow-item + .flow-item { padding-left: 0; border-left: 0; }
  .flow-item:first-child { border-top: 0; }
  .plans { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .wrap { padding-inline: 20px; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- RTL support (fa, ar) ---------- */
[dir="rtl"] { text-align: right; }

[dir="rtl"] .hero-grid { direction: rtl; }
[dir="rtl"] .hero::before { inset: -20% -10% 40% 40%; }

[dir="rtl"] .flow-item { padding: 34px 0 34px 32px; }
[dir="rtl"] .flow-item + .flow-item { padding-right: 32px; padding-left: 0; border-left: 0; border-right: 1px solid var(--line-soft); }

[dir="rtl"] .faq-q { text-align: right; padding: 24px 0 24px 40px; }
[dir="rtl"] .faq-q::after { right: auto; left: 6px; }
[dir="rtl"] .faq-a { padding: 0 0 26px 60px; }

[dir="rtl"] .legal-toc { border-left: 0; border-right: 1px solid var(--line-soft); padding-left: 0; padding-right: 20px; }
[dir="rtl"] .prose .callout { border-left: 1px solid var(--line); border-right: 2px solid var(--accent); }
[dir="rtl"] .prose ul { padding-left: 0; padding-right: 20px; }

[dir="rtl"] .lang-switch-menu { inset-inline-end: auto; inset-inline-start: 0; }

[dir="rtl"] .footer-bottom { direction: rtl; }

/* Numbers, brand name, and code-like tokens stay LTR even inside RTL flows */
[dir="rtl"] .mono,
[dir="rtl"] .brand,
[dir="rtl"] .stat b:not(.entity) {
  direction: ltr;
  unicode-bidi: isolate;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* Pricing monthly/yearly toggle */
.pricing-toggle {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  margin: 0 0 2rem;
}
.pricing-toggle .toggle-label {
  font-size: 0.9375rem; color: var(--text-3); cursor: pointer; user-select: none;
}
.pricing-toggle .toggle-label.is-active { color: var(--text); font-weight: 600; }
.pricing-toggle .toggle-badge {
  display: inline-block; margin-inline-start: 0.4em; padding: 0.1em 0.55em;
  border-radius: var(--r-pill); background: var(--accent-soft);
  color: var(--accent); font-size: 0.75rem; font-weight: 600;
}
.price-toggle-switch {
  position: relative; width: 46px; height: 26px; border-radius: var(--r-pill); border: none;
  background: var(--line); cursor: pointer; padding: 0; flex-shrink: 0;
  transition: background-color 0.15s;
}
.price-toggle-switch::before {
  content: ""; position: absolute; top: 3px; inset-inline-start: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: inset-inline-start 0.15s;
}
.price-toggle-switch[aria-checked="true"] { background: var(--accent); }
.price-toggle-switch[aria-checked="true"]::before { inset-inline-start: 23px; }

/* Header login button */
.nav-login{padding:.45rem .95rem;font-size:.95rem;white-space:nowrap}
@media (max-width:760px){.nav-login{display:none}}

/* نام برند نارنجی */
.bn { color: #ff8a1f; }
