/*
 * Jib marketing site. Neumorphism ("soft UI"): one surface colour, and every
 * shape is either pushed out of it (two outer shadows) or pressed into it
 * (two inner shadows). There is no library for this; it is plain CSS.
 *
 * Shape rule, followed everywhere: panels 28px, wells and tiles 20px,
 * everything you can press is a full pill.
 * Layers: page 0, sticky nav 10. Nothing else sets a z-index.
 */

@font-face {
  font-family: Vazirmatn;
  src: url("fonts/Vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #dce2ea;
  --sh-dark: #bcc5d2;
  --sh-light: #eff3f8;
  --text: #17273a;
  --muted: #4c5d73;
  --accent: #087f6d;
  --accent-text: #05705d;
  --on-accent: #ffffff;
  --no: #a61f38;
  --line: #cad2de;

  --raised: 10px 10px 24px var(--sh-dark), -10px -10px 24px var(--sh-light);
  --raised-sm: 5px 5px 12px var(--sh-dark), -5px -5px 12px var(--sh-light);
  --pressed: inset 6px 6px 12px var(--sh-dark), inset -6px -6px 12px var(--sh-light);
  --pressed-sm: inset 3px 3px 7px var(--sh-dark), inset -3px -3px 7px var(--sh-light);

  --r-panel: 28px;
  --r-tile: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #101d2f;
  --sh-dark: #08111d;
  --sh-light: #1a2c45;
  --text: #eef3f8;
  --muted: #a3b5c7;
  --accent: #43d6bd;
  --accent-text: #43d6bd;
  --on-accent: #062a25;
  --no: #ff8d99;
  --line: #1c2f47;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Vazirmatn, Tahoma, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 0.4s var(--ease),
    color 0.4s var(--ease);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.35;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Screenshots come in both themes; only the one that matches is shown. */
:root[data-theme="dark"] .only-light,
:root:not([data-theme="dark"]) .only-dark {
  display: none;
}

/* ---------- Surfaces ---------- */

.raised {
  background: var(--bg);
  border-radius: var(--r-panel);
  box-shadow: var(--raised);
}

.pressed {
  background: var(--bg);
  border-radius: var(--r-panel);
  box-shadow: var(--pressed);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--raised-sm);
  transition:
    box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

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

.btn:active {
  transform: none;
  box-shadow: var(--pressed-sm);
}

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

.btn-accent:active {
  box-shadow:
    inset 4px 4px 9px #0004,
    inset -3px -3px 7px #fff2;
}

.btn:disabled {
  color: var(--muted);
  box-shadow: var(--pressed-sm);
  cursor: default;
  transform: none;
}

.btn-round {
  width: 48px;
  min-height: 48px;
  padding: 0;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 16px;
  z-index: 10;
  margin-top: 16px;
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
  padding-inline: 20px 10px;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: var(--raised-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
}

.brand img {
  width: 40px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
}

.nav-links a {
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  transition:
    color 0.2s,
    box-shadow 0.25s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  box-shadow: var(--pressed-sm);
}

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

.nav-actions .btn {
  min-height: 48px;
}

#theme-toggle .icon-moon,
:root[data-theme="dark"] #theme-toggle .icon-sun {
  display: block;
}

#theme-toggle .icon-sun,
:root[data-theme="dark"] #theme-toggle .icon-moon {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  min-height: calc(100dvh - 100px);
  padding-block: 40px 56px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.4rem);
  font-weight: 850;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-text);
}

.hero-sub {
  max-width: 40ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

/* The dish the phone sits in: a wide pressed circle behind it. */
.hero-visual::before {
  content: "";
  position: absolute;
  width: min(460px, 92%);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: var(--pressed);
}

.phone {
  position: relative;
  width: min(280px, 70vw);
  padding: 12px;
  border-radius: 46px;
  background: var(--bg);
  box-shadow: var(--raised);
}

.phone img {
  width: 100%;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top;
  border-radius: 36px;
}

.phone-stage {
  position: relative;
}

.hero-mark {
  position: absolute;
  inset-block-end: 44px;
  inset-inline-start: -62px;
  width: 104px;
  padding: 18px;
  border-radius: var(--r-panel);
  background: var(--bg);
  box-shadow: var(--raised);
}

/* ---------- Sections ---------- */

section {
  padding-block: 72px;
}

.section-head {
  max-width: 62ch;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 800;
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.1rem;
}

/* ---------- What it answers ---------- */

.answers {
  padding: 12px 40px;
}

.answer {
  display: grid;
  grid-template-columns: 64px 1fr 1fr;
  align-items: center;
  gap: 28px;
  padding-block: 30px;
}

.answer + .answer {
  border-top: 2px solid var(--line);
}

.knob {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: var(--accent-text);
  box-shadow: var(--raised-sm);
}

.answer h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 800;
}

.answer p {
  color: var(--muted);
}

/* ---------- Features ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
}

.cell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px;
  grid-column: span 2;
  overflow: hidden;
}

.cell h3 {
  font-size: 1.3rem;
  font-weight: 800;
}

.cell p {
  color: var(--muted);
  font-size: 1rem;
}

.cell-wide {
  grid-column: span 4;
}

.cell-half {
  grid-column: span 3;
}

.cell-shot {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 28px;
  align-items: start;
  padding-bottom: 0;
}

.cell-shot > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 30px;
}

/* A screenshot rising out of the bottom edge of its tile. */
.shot {
  align-self: end;
  padding: 8px 8px 0;
  border-radius: 30px 30px 0 0;
  box-shadow: var(--pressed-sm);
}

.shot img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top;
  border-radius: 22px 22px 0 0;
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 8px;
  border-radius: var(--r-tile);
  color: var(--accent-text);
  box-shadow: var(--raised-sm);
}

.sample {
  margin-top: auto;
  padding-top: 14px;
}

.sample-note {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Bank message in, transaction out. */
.sms {
  padding: 14px 18px;
  border-radius: var(--r-tile);
  box-shadow: var(--pressed-sm);
  font-size: 0.92rem;
  line-height: 1.8;
}

.sms-out {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: var(--raised-sm);
  font-weight: 700;
  font-size: 0.95rem;
}

.sms-out b {
  color: var(--no);
  direction: ltr;
}

.extras {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 44px;
  padding: 0;
  list-style: none;
}

.extras li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: var(--raised-sm);
  font-size: 0.95rem;
  font-weight: 600;
}

.extras .icon {
  width: 18px;
  height: 18px;
  color: var(--accent-text);
}

/* ---------- Who it is for ---------- */

.fit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.fit-card {
  padding: 36px;
}

.fit-card h3 {
  margin-bottom: 20px;
  font-size: 1.45rem;
  font-weight: 800;
}

.fit-card ul {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fit-card li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
}

.fit-card li .icon {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  margin-top: 2px;
}

.fit-yes li .icon {
  color: var(--accent-text);
  box-shadow: var(--raised-sm);
}

.fit-no {
  color: var(--muted);
}

.fit-no h3 {
  color: var(--text);
}

.fit-no li .icon {
  color: var(--no);
  box-shadow: var(--pressed-sm);
}

/* ---------- Trust band ---------- */

.trust {
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  gap: 40px;
  align-items: center;
  padding: 44px;
}

.trust h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
}

.trust dl {
  display: grid;
  gap: 22px;
  margin: 0;
}

.trust dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.trust dt .icon {
  color: var(--accent-text);
}

.trust dd {
  margin: 2px 0 0;
  padding-inline-start: 32px;
  color: var(--muted);
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 20px;
  max-width: 820px;
}

.faq details {
  border-radius: var(--r-tile);
  box-shadow: var(--raised-sm);
  transition: box-shadow 0.3s var(--ease);
}

.faq details[open] {
  box-shadow: var(--pressed-sm);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  border-radius: var(--r-tile);
}

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

.faq summary .icon {
  color: var(--accent-text);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary .icon {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 24px 22px;
  color: var(--muted);
}

/* ---------- Closing ---------- */

.closing {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 64px 28px;
  text-align: center;
}

.closing img {
  width: 96px;
}

.closing h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
}

.closing p {
  max-width: 44ch;
  color: var(--muted);
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 32px 44px;
  color: var(--muted);
  font-size: 0.95rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

footer a:hover {
  color: var(--text);
}

/* ---------- Download page ---------- */

.page-head {
  padding-block: 64px 12px;
}

.page-head h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 850;
}

.page-head p {
  max-width: 52ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.15rem;
}

.platforms {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 36px;
  align-items: start;
}

.platform {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px;
}

.platform-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.platform h2 {
  font-size: 1.6rem;
  font-weight: 800;
}

.status {
  padding: 4px 16px;
  border-radius: 999px;
  color: var(--accent-text);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--pressed-sm);
}

.status-later {
  color: var(--muted);
}

.platform > p {
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 18px;
  margin: 8px 0 12px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: center;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--accent-text);
  font-weight: 800;
  box-shadow: var(--raised-sm);
}

.steps span {
  direction: ltr;
  unicode-bidi: isolate;
  font-weight: 700;
}

.platform .btn {
  align-self: start;
}

.platform-quiet {
  color: var(--muted);
}

.platform-quiet h2 {
  color: var(--text);
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition:
      opacity 0.8s var(--ease),
      transform 0.8s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
  }

  .js .reveal.in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* ---------- Smaller screens ---------- */

@media (max-width: 960px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .cell,
  .cell-half {
    grid-column: span 1;
  }

  .cell-wide {
    grid-column: span 2;
  }

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

@media (max-width: 767px) {
  body {
    font-size: 16px;
  }

  .wrap {
    width: calc(100% - 32px);
  }

  .nav-links {
    display: none;
  }

  .nav-bar {
    justify-content: space-between;
    padding-inline: 16px 8px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: 0;
    padding-block: 36px 24px;
  }

  .hero-cta .btn {
    flex: 1;
  }

  .hero-mark {
    inset-inline-start: -28px;
    width: 84px;
    padding: 14px;
  }

  section {
    padding-block: 48px;
  }

  .answers {
    padding: 4px 22px;
  }

  .answer {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-block: 24px;
  }

  .bento,
  .fit,
  .platforms {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cell,
  .cell-wide,
  .cell-half {
    grid-column: auto;
    padding: 24px;
  }

  .cell-shot {
    grid-template-columns: 1fr;
    padding-bottom: 0;
  }

  .cell-shot > div {
    padding-bottom: 0;
  }

  .shot {
    width: min(260px, 100%);
    margin-inline: auto;
  }

  .fit-card,
  .trust,
  .platform {
    padding: 26px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ---------- Tiles that show a cut of a real screen under their text ---------- */

.cell-stack {
  gap: 10px;
}

.well {
  margin-top: auto;
  padding: 8px;
  border-radius: var(--r-tile);
  box-shadow: var(--pressed-sm);
}

.cell-stack .well {
  margin-top: 18px;
}

.well img {
  width: 100%;
  border-radius: 14px;
}

.cell-strip {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

.cell-strip .tile-icon {
  margin: 0;
}

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: 32px;
  align-items: center;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px;
}

.plan-main {
  padding-block: 44px;
}

.plan h3 {
  font-size: 1.4rem;
  font-weight: 800;
}

.plan-blurb {
  color: var(--muted);
  font-size: 0.98rem;
}

.price {
  margin-top: 10px;
  font-size: 2rem;
  font-weight: 850;
  line-height: 1.3;
}

.price small {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.price-note {
  color: var(--accent-text);
  font-size: 0.92rem;
  font-weight: 700;
}

.plan ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 18px 0 0;
  border-top: 2px solid var(--line);
  list-style: none;
  font-size: 0.98rem;
}

.plan li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
}

.plan li .icon {
  width: 20px;
  height: 20px;
  margin-top: 5px;
  color: var(--accent-text);
}

.plans-note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- FAQ beside contact ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

.contact {
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px;
}

.contact h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.contact p {
  color: var(--muted);
  font-size: 0.98rem;
}

.contact-rows {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: var(--raised-sm);
  font-weight: 700;
  white-space: nowrap;
  transition: box-shadow 0.25s var(--ease);
}

.contact-row:active {
  box-shadow: var(--pressed-sm);
}

.contact-row small {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.contact-row span {
  font-size: 0.92rem;
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: isolate;
  color: var(--accent-text);
}

/* ---------- Policy page ---------- */

.policy {
  max-width: 820px;
  padding: 40px;
}

.policy h2 {
  margin-top: 30px;
  font-size: 1.25rem;
  font-weight: 800;
}

.policy h2:first-of-type {
  margin-top: 12px;
}

.policy ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-inline-start: 22px;
  color: var(--muted);
}

.policy .version {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Phone dock: the site's own bottom bar, as the app has one ---------- */

.dock {
  display: none;
}

@media (max-width: 960px) {
  .plans,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .plan-main {
    padding-block: 32px;
  }

  .contact {
    position: static;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .nav-actions .btn-accent {
    display: none;
  }

  .dock {
    position: fixed;
    inset-inline: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr 64px 1fr 1fr;
    align-items: center;
    height: 68px;
    padding-inline: 6px;
    border-radius: 999px;
    background: var(--bg);
    box-shadow: var(--raised-sm);
  }

  .dock a {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding-block: 6px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.4;
  }

  .dock a:active,
  .dock a[aria-current="page"] {
    color: var(--text);
    box-shadow: var(--pressed-sm);
  }

  .dock .icon {
    width: 20px;
    height: 20px;
  }

  .dock .dock-get {
    width: 56px;
    height: 56px;
    margin-inline: auto;
    place-content: center;
    background: var(--accent);
    color: var(--on-accent);
    box-shadow: var(--raised-sm);
  }

  .dock .dock-get .icon {
    width: 24px;
    height: 24px;
  }

  .cell-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .plan,
  .contact,
  .policy {
    padding: 26px;
  }
}

.platform-side {
  display: grid;
  gap: 36px;
}

.contact-card .contact-rows {
  margin-top: 4px;
}

@media (max-width: 900px) {
  .nav-bar {
    gap: 10px;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links a {
    padding-inline: 10px;
    font-size: 0.95rem;
  }
}
