/* OneTwoPay landing page. Logical properties throughout so the same CSS serves RTL (he) and LTR (en). */
:root {
  --navy: #0b1f3a;
  --navy-2: #12305a;
  --blue: #00a8e8;
  --blue-ink: #006fa3;
  --orange: #f39419;
  --orange-soft: #fff3e3;
  --ink: #0f1b2d;
  --muted: #55627a;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --ok: #157f3b;
  --ok-bg: #e6f6ec;
  --warn: #a5560a;
  --warn-bg: #fdf1e1;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 31, 58, 0.06), 0 8px 24px rgba(11, 31, 58, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
p { margin: 0; }

.wrap { max-width: 1140px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }
.narrow { max-width: 780px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 500; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  white-space: nowrap; font-size: 1rem; cursor: pointer;
}
button.btn { font-family: inherit; line-height: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn-primary { background: var(--orange); color: var(--navy); box-shadow: 0 6px 18px rgba(243, 148, 25, .35); }
.btn-primary:hover { background: #ffa531; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-text { color: var(--navy); padding-inline: 12px; }
.btn-text:hover { color: var(--blue-ink); transform: none; }
.btn-sm { padding: 8px 18px; font-size: .95rem; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 24px; margin-inline-start: 8px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--muted);
  font-weight: 500; padding: 8px 10px; border-radius: 999px;
}
.lang-switch:hover { color: var(--navy); background: var(--bg-soft); }
.lang-switch .icon { width: 18px; height: 18px; }

@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 560px) {
  .brand img { height: 32px; }
  .header-actions .btn-text { display: none; }
  .header-actions .lang-switch span { display: none; }
  .header-inner { gap: 8px; }
}

/* Animation start state: hidden only until main.js has set GSAP start values (3s fallback in <head>). */
.anim .hero-text > *, .anim .mock, .anim [data-anim] { visibility: hidden; }

.site-header { transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(11, 31, 58, .08); }

/* Logos grid: every logo visible at once; main.js adds the entrance and the highlight wave. */
.logos { padding-block: 48px 8px; }
.logos-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 20px; padding: 28px 20px 30px; }
.logos-title { text-align: center; font-size: 1.05rem; font-weight: 500; color: var(--muted); }
.logo-grid {
  list-style: none; margin: 22px auto 0; padding: 0; max-width: 1040px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
}
.logo {
  flex: 0 1 150px; display: flex; align-items: center; justify-content: center; height: 72px; padding-inline: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 0 0 rgba(243, 148, 25, 0);
  transition: border-color .2s ease;
}
.logo:hover { border-color: #cfd8e3; }
.logo img { width: auto; max-width: 100%; object-fit: contain; display: block; }
@media (max-width: 560px) {
  .logos-box { padding-inline: 12px; }
  .logo-grid { gap: 10px; }
  .logo { flex-basis: calc(50% - 5px); height: 64px; }
}

/* Hero */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(0, 168, 232, .35), transparent 60%),
    radial-gradient(700px 380px at 0% 110%, rgba(243, 148, 25, .22), transparent 60%),
    var(--navy);
  color: #fff;
  padding-block: 64px 72px;
  overflow: hidden;
}
.hero-inner { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.1fr .9fr; } }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 700; letter-spacing: -.01em; }
.hero-sub { margin-top: 20px; font-size: clamp(1.05rem, 2vw, 1.2rem); color: #cfdcef; max-width: 36em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: #a9bbd6; font-size: .95rem; }
.hero-note .icon { color: var(--orange); }
@media (max-width: 480px) { .hero-ctas .btn { width: 100%; } }

/* Hero mock (illustration) */
.mock { background: #fff; color: var(--ink); border-radius: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); overflow: hidden; max-width: 480px; margin-inline: auto; }
.mock-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line); font-weight: 500; font-size: .95rem; }
.mock-dots { display: inline-flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d6dde8; display: block; }
.mock-dots i:first-child { background: var(--orange); }
.mock-dots i:nth-child(2) { background: var(--blue); }
.mock-body { padding: 18px 16px 20px; display: grid; gap: 10px; }
.mock-customer { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .95rem; margin-bottom: 4px; }
.mock-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.mock-label { font-weight: 500; }
.mock-amount { color: var(--muted); font-size: .9rem; grid-column: 1; }
.mock-row .pill { grid-column: 2; grid-row: 1 / span 2; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 500; white-space: nowrap; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.mock-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.mock-btn { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; font-weight: 500; color: var(--navy); }
.mock-btn-primary { background: var(--orange); border-color: var(--orange); }

/* Sections */
.section { padding-block: 72px; }
.section-soft { background: var(--bg-soft); }
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; text-align: center; color: var(--navy); }
.section-sub { text-align: center; color: var(--muted); margin-top: 12px; }
.grid { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.2rem; margin-top: 16px; color: var(--navy); }
.card p { margin-top: 8px; color: var(--muted); }
.card-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--orange-soft); color: #d97a00; }
.card-icon .icon { width: 24px; height: 24px; }

.mini { display: flex; gap: 14px; align-items: flex-start; padding: 6px 4px; }
.mini h3, .why-item h3 { font-size: 1.05rem; color: var(--navy); }
.mini p, .why-item p { color: var(--muted); margin-top: 4px; font-size: .97rem; }
.mini-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #e3f5fd; color: var(--blue-ink); flex: none; }
.mini-icon .icon { width: 20px; height: 20px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 20px; counter-reset: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { position: relative; padding: 26px; border-radius: var(--radius); background: var(--bg-soft); }
.steps h3 { font-size: 1.2rem; color: var(--navy); margin-top: 14px; }
.steps p { color: var(--muted); margin-top: 6px; }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; }

.why { display: grid; gap: 20px; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .why { grid-template-columns: repeat(3, 1fr); } }
.why-item { display: flex; gap: 14px; align-items: flex-start; }

/* Trial band */
.trial { background: var(--orange); color: var(--navy); padding-block: 48px; }
.trial-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.trial h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.trial p { margin-top: 8px; max-width: 40em; font-size: 1.05rem; }

/* Pricing */
.plans { display: grid; gap: 20px; margin-top: 40px; align-items: stretch; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); }
.plan h3 { font-size: 1.3rem; color: var(--navy); }
.plan-for { color: var(--muted); margin-top: 4px; min-height: 3.2em; }
.plan-price { margin-top: 12px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.plan-amount { font-size: 2.2rem; font-weight: 700; color: var(--navy); }
.plan-per { color: var(--muted); }
.plan-contact { font-size: 1.6rem; line-height: 1.6; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; }
.plan li .icon { color: var(--ok); width: 18px; height: 18px; margin-top: 3px; }
.plan .btn { width: 100%; }
.plan-highlight { border: 2px solid var(--orange); box-shadow: 0 12px 32px rgba(243, 148, 25, .22); }

/* FAQ */
.faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-top: 12px; }
.faq:first-of-type { margin-top: 36px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s ease; color: var(--muted); }
.faq[open] summary .icon { transform: rotate(180deg); }
.faq p { padding: 0 20px 18px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy); color: #a9bbd6; padding-block: 32px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-inner img { height: 34px; width: auto; background: #fff; border-radius: 10px; padding: 4px 10px; box-sizing: content-box; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.footer-links a:not(.lang-switch) { color: #cfdcef; text-decoration: none; }
.footer-links a:not(.lang-switch):hover { color: #fff; text-decoration: underline; }
.site-footer .lang-switch { color: #cfdcef; }
.site-footer .lang-switch:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* Legal pages (Terms of Service, Privacy Policy) */
.legal { padding-block: 40px 72px; }
.legal-back a { color: var(--blue-ink); text-decoration: none; font-weight: 500; }
.legal-back a:hover { text-decoration: underline; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--navy); margin-top: 18px; }
.legal-updated { color: var(--muted); margin-top: 8px; font-size: .95rem; }
.legal-body { margin-top: 28px; }
.legal-body h2 { font-size: 1.25rem; color: var(--navy); margin-top: 32px; }
.legal-body p, .legal-body li { color: #2c3a50; }
.legal-body p { margin-top: 12px; }
.legal-body ul { margin: 12px 0 0; padding-inline-start: 22px; display: grid; gap: 8px; }
.legal-body a { color: var(--blue-ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary .icon { transition: none; }
}
