/* Riplo EN — one stylesheet for the whole marketing site. */

:root {
  --brand: #6d4aff;
  --brand-strong: #5a37e8;
  --brand-soft: #f1ecff;
  --ink: #1a1630;
  --ink-soft: #5f5a72;
  --line: #e6e1f5;
  --surface: #ffffff;
  --page: #faf9ff;
  --ok: #0f7a55;
  --ok-soft: #e7f8f1;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 18px 50px rgba(77, 52, 133, 0.09);
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #9b84ff;
    --brand-strong: #b3a1ff;
    --brand-soft: #241d46;
    --ink: #f2effd;
    --ink-soft: #a9a3c2;
    --line: #322a56;
    --surface: #17132b;
    --page: #100d20;
    --ok: #5fd6a8;
    --ok-soft: #14322a;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  }
}

:root[data-theme="dark"] {
  --brand: #9b84ff;
  --brand-strong: #b3a1ff;
  --brand-soft: #241d46;
  --ink: #f2effd;
  --ink-soft: #a9a3c2;
  --line: #322a56;
  --surface: #17132b;
  --page: #100d20;
  --ok: #5fd6a8;
  --ok-soft: #14322a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.7 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 12px; letter-spacing: -0.02em; }
h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 750; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 16px; color: var(--ink-soft); }
a { color: var(--brand); }
img, svg { max-width: 100%; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.center { text-align: center; }
.lede { font-size: clamp(17px, 2vw, 20px); max-width: 62ch; }
.center .lede { margin-inline: auto; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; padding: 14px 0; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), #9d7bff);
  color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 800;
}
.nav-links { display: flex; gap: 22px; margin-inline-start: auto; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--brand); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* ---------- hero ---------- */

.hero { padding: clamp(52px, 8vw, 92px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }

.eyebrow {
  display: inline-block; padding: 6px 13px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 700;
  margin-bottom: 18px;
}

/* ---------- demo card ---------- */

.demo {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow);
}
.demo-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.demo-title { font-weight: 700; font-size: 15px; }
.pill { margin-inline-start: auto; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }
.step { display: flex; gap: 12px; padding: 12px 0; }
.step + .step { border-top: 1px dashed var(--line); }
.step-icon { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.step-label { font-size: 12px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.step-body { font-size: 15px; margin: 2px 0 0; color: var(--ink); }
.bubble { background: var(--brand-soft); color: var(--ink); padding: 11px 14px; border-radius: 14px 14px 14px 4px; font-size: 14px; margin-top: 8px; }

/* ---------- cards ---------- */

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-size: 19px; margin-bottom: 15px;
}

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-inline-start: 26px; margin-bottom: 10px; color: var(--ink-soft); }
.ticks li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: 0;
  color: var(--ok); font-weight: 800;
}

/* ---------- steps ---------- */

.steps { counter-reset: step; }
.steps .card { position: relative; }
.steps .card::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: 13px; font-weight: 800; color: var(--brand); margin-bottom: 10px;
}

/* ---------- pricing ---------- */

.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.plan.featured { border-color: var(--brand); position: relative; }
.plan-flag {
  position: absolute; top: -12px; inset-inline-start: 28px;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.plan-name { font-size: 15px; font-weight: 700; color: var(--ink-soft); }
.price { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 2px; }
.price span { font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.plan .ticks { margin: 20px 0 24px; }
.plan .btn { width: 100%; }

/* ---------- comparison table ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 14px 18px; text-align: start; border-bottom: 1px solid var(--line); font-size: 15px; }
th { font-weight: 700; background: var(--brand-soft); color: var(--ink); }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; color: var(--ink); }

/* ---------- faq ---------- */

.faq { display: grid; gap: 12px; max-width: 780px; margin-inline: auto; }
details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px;
}
details[open] { border-color: var(--brand); }
summary { font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: inline-end; color: var(--brand); font-weight: 800; }
details[open] summary::after { content: "−"; }
details p { margin: 12px 0 0; }

/* ---------- cta ---------- */

.cta {
  background: linear-gradient(135deg, var(--brand), #8b6bff);
  color: #fff; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 64px); text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .88); max-width: 54ch; margin-inline: auto; }
.cta .btn-primary { background: #fff; color: var(--brand-strong); }

/* ---------- prose (legal pages) ---------- */

.prose { max-width: 74ch; }
.prose h2 { font-size: 24px; margin-top: 36px; }
.prose ul { padding-inline-start: 22px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 44px 0 34px; margin-top: 40px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; margin-inline-start: auto; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--brand); }
.copyright { font-size: 14px; color: var(--ink-soft); margin: 22px 0 0; }

/* ---------- breadcrumb ---------- */

.crumbs { font-size: 14px; color: var(--ink-soft); padding-top: 24px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }

@media (max-width: 700px) {
  .nav { gap: 14px; }
  .nav-links { display: none; }
}

/* ==========================================================================
   Motion and product mockups — ported from the Persian site so both versions
   read as the same product. Everything here respects prefers-reduced-motion.
   ========================================================================== */

@keyframes soundBars { 0%, 100% { transform: scaleY(.65); } 50% { transform: scaleY(1.15); } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(54,201,136,.32); } 70%, 100% { box-shadow: 0 0 0 9px rgba(54,201,136,0); } }
@keyframes orbFloat { 0%, 100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(16px,14px,0) scale(1.04); } }
@keyframes cardFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-.6deg); } }
@keyframes softPop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@keyframes barRise { from { transform: scaleY(.7); } to { transform: scaleY(1); } }
@keyframes capabilityFloat { 0%, 100% { transform: translateY(0) rotate(.25deg); } 50% { transform: translateY(-5px) rotate(-.25deg); } }

/* ---------- scroll reveal ---------- */

/* Scoped to .js so a blocked or failed script.js can never leave the page blank:
   without that class the content is simply visible and unanimated. */
.js .reveal { opacity: 0; transform: translateY(25px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }

.orb { position: absolute; border-radius: 50%; filter: blur(3px); pointer-events: none; }
.orb-one { width: 430px; height: 430px; background: linear-gradient(145deg, #ddd5ff, #f8f4ff); top: 40px; left: 40px; animation: orbFloat 8s ease-in-out infinite; }
.orb-two { width: 260px; height: 260px; background: #e4fff4; bottom: 10px; right: 10px; opacity: .7; animation: orbFloat 10s ease-in-out infinite reverse; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .orb-one { background: linear-gradient(145deg, #2b2357, #1b1636); opacity: .75; }
  :root:not([data-theme="light"]) .orb-two { background: #14332a; opacity: .5; }
}
:root[data-theme="dark"] .orb-one { background: linear-gradient(145deg, #2b2357, #1b1636); opacity: .75; }
:root[data-theme="dark"] .orb-two { background: #14332a; opacity: .5; }

.eyebrow .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #36c988; margin-inline-end: 7px; vertical-align: middle;
  animation: pulseRing 2s ease-out infinite;
}

h1 .accent { color: var(--brand); }

.button-arrow { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transform: scaleX(-1); transition: transform .15s ease; }
.btn:hover .button-arrow { transform: scaleX(-1) translateX(-3px); }

/* ---------- dashboard mockup ---------- */

.dashboard-card {
  position: relative; width: min(430px, 100%);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--line); border-radius: 24px; padding: 21px;
  box-shadow: 0 30px 70px rgba(47,35,105,.16); z-index: 2; transform: rotate(1deg);
}
.dash-head { display: flex; align-items: center; gap: 11px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.mini-logo { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), #9d7bff); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; }
.dash-head strong { display: block; font-size: 15px; }
.dash-head small { color: var(--ink-soft); font-size: 12.5px; display: flex; align-items: center; gap: 5px; }
.dash-head small i { width: 7px; height: 7px; border-radius: 50%; background: #36c988; display: inline-block; }
.dash-head .more { margin-inline-start: auto; background: none; border: 0; color: var(--ink-soft); font-size: 16px; }

.flow { padding: 16px 0; display: grid; gap: 9px; }
.flow-label { font-size: 12px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.flow-box { display: flex; align-items: center; gap: 11px; padding: 12px 13px; border-radius: 14px; border: 1px solid var(--line); background: var(--page); }
.flow-box.comment { border-color: color-mix(in srgb, var(--brand) 30%, transparent); }
.flow-box.dm { border-color: #36c98855; background: var(--ok-soft); }
.flow-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.flow-box b { display: block; font-size: 14px; }
.flow-box small { color: var(--ink-soft); font-size: 12.5px; }
.flow-box .check { margin-inline-start: auto; color: var(--ok); font-weight: 800; }
.flow-line { text-align: center; color: var(--brand); font-weight: 800; }
.flow-line span { display: inline-block; animation: softPop 2.4s ease-in-out infinite; }

.dash-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 15px; border-top: 1px solid var(--line); }
.dash-stats span { font-size: 12px; color: var(--ink-soft); display: block; }
.dash-stats strong { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.dash-stats em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ok); }

/* ---------- floating cards ---------- */

.floating-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border: 1px solid var(--line); border-radius: 15px; padding: 11px 13px;
  box-shadow: 0 15px 34px rgba(50,40,99,.15); z-index: 3; max-width: 250px;
}
.floating-card b { display: block; font-size: 13px; }
.floating-card small { color: var(--ink-soft); font-size: 12px; }
.floating-card.notification { top: 8px; right: -6px; animation: cardFloat 4.8s ease-in-out infinite; }
.floating-card.sent { bottom: 18px; left: -10px; animation: cardFloat 5.4s ease-in-out .7s infinite; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; flex: none; background: linear-gradient(135deg, #ff8fb1, #ff5f92); }
.sent-icon { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); font-weight: 800; flex: none; }
.floating-card i { margin-inline-start: auto; font-style: normal; font-size: 11px; color: var(--ink-soft); }

/* ---------- capability rows ---------- */

.capability { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .capability { grid-template-columns: 1fr 1fr; }
  .capability.flip .capability-copy { order: 2; }
}
.capability + .capability { margin-top: clamp(40px, 6vw, 72px); }
.capability-visual {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow); animation: capabilityFloat 5.5s ease-in-out infinite;
}
.capability.flip .capability-visual { animation-delay: -2.7s; }

.chat-line { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.chat-line:last-child { margin-bottom: 0; }
.bubble-in, .bubble-out { padding: 10px 13px; border-radius: 14px; font-size: 13.5px; max-width: 80%; }
.bubble-in { background: var(--page); border: 1px solid var(--line); border-start-start-radius: 4px; }
.bubble-out { background: var(--brand-soft); margin-inline-start: auto; border-start-end-radius: 4px; }
.bubble-out b { color: var(--brand); }

.live-head { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.live-badge { background: #ff3b5c; color: #fff; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 6px; letter-spacing: .06em; }
.live-count { font-size: 12.5px; color: var(--ink-soft); }
.brand-mark { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 13px; margin-inline-start: auto; }
.brand-mark i { width: 3px; height: 100%; background: var(--brand); border-radius: 2px; display: block; transform-origin: bottom; animation: soundBars 1.8s ease-in-out infinite; }
.brand-mark i:nth-child(2) { animation-delay: .16s; }
.brand-mark i:nth-child(3) { animation-delay: .32s; }

.growth-art { display: flex; align-items: flex-end; gap: 10px; height: 110px; padding-top: 8px; }
.growth-art i { flex: 1; background: linear-gradient(180deg, var(--brand), #9d7bff); border-radius: 7px 7px 3px 3px; transform-origin: bottom; animation: barRise 2.2s ease-in-out infinite alternate; display: block; }
.growth-art i:nth-child(1) { height: 38%; }
.growth-art i:nth-child(2) { height: 56%; animation-delay: .2s; }
.growth-art i:nth-child(3) { height: 74%; animation-delay: .4s; }
.growth-art i:nth-child(4) { height: 100%; animation-delay: .6s; }

.mini-stat { display: flex; gap: 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.mini-stat div span { font-size: 12px; color: var(--ink-soft); display: block; }
.mini-stat div strong { font-size: 18px; font-weight: 800; }

/* ---------- responsive + reduced motion ---------- */

@media (max-width: 900px) {
  .hero-visual { min-height: 380px; }
  .floating-card.notification { right: -2px; }
  .floating-card.sent { left: -2px; }
}
@media (max-width: 560px) {
  .floating-card { position: static; margin: 10px auto 0; max-width: 100%; animation: none; }
  .dashboard-card { transform: none; }
  .orb { display: none; }
  .hero-visual { min-height: auto; display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
