/* eWAY coming soon.
   The wordmark's three bars (the font's "e") run on as three lanes, one per product.
   Brand kit A, Blocks: white page, ink cards, one lime thing per screen, lilac for months still to pay. */

@font-face {
  font-family: "Space Quest";
  src: url("assets/fonts/SpaceQuest.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  /* eWAY brand kit A, Blocks */
  --ink: #0e0e10;
  --lime: #c8f135;
  --lilac: #d9ccff;
  --bone: #f2eee5;
  --graphite: #2a2a31;
  --white: #ffffff;
  --ink-soft: #55555d;

  --font-brand: "Space Quest", "Eurostile", "Arial Narrow", sans-serif;
  --font-display: "Bricolage Grotesque", "Alexandria", system-ui, sans-serif;
  --font-ui: "Alexandria", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-till: "IBM Plex Mono", "Alexandria", ui-monospace, Menlo, monospace;

  --gutter: clamp(20px, 4.5vw, 64px);
  /* the white margin around the big hero and closing cards */
  --edge: clamp(8px, 1.4vw, 20px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

* { box-sizing: border-box; }

html { background: var(--white); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}
main :focus-visible, .closing :focus-visible { outline-color: var(--white); }

/* ---------- top bar ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 14px;
}

.status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 13px;
  border-radius: 999px;
  background: var(--bone);
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 459px) {
  .status { padding: 7px 13px 7px 11px; font-size: 0.875rem; }
  .top .top-nav { gap: 4px; }
  .top .top-nav a { padding: 10px 8px; font-size: 0.875rem; }
  .lang { padding: 8px 16px; }
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
}

.lang {
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 8px 20px;
  min-height: 44px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.lang:hover { background: var(--graphite); }

/* ---------- wordmark ---------- */

/* the first screen is one big rounded ink card, like the product cards below it */
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(900px, calc(100dvh - 86px));
  margin: 0 var(--edge);
  padding: clamp(28px, 5vh, 64px) calc(var(--gutter) - var(--edge)) clamp(32px, 5vh, 64px);
  border-radius: clamp(28px, 3vw, 40px);
  background: var(--ink);
  color: var(--white);
  /* the lanes run past the right edge; cut them here so phones don't widen the page */
  overflow-x: hidden;
}
@supports (overflow: clip) {
  main { overflow: visible; overflow-x: clip; }
}

.mark {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(4.75rem, 18.5vw, 14.5rem);
  line-height: 0.92;
  white-space: nowrap;
  color: var(--white);
  /* the wordmark always reads left to right, in both languages */
  text-align: left;
}

/* The font's "e": three bars, 400 units tall with 100-unit gaps on a 2048 em.
   An inline-block with no text sits on the baseline by its bottom edge, so it lines up with WAY. */
.xi {
  display: inline-block;
  width: 0.5371em;
  height: 0.6836em;
  margin: 0 0.0244em;
}

/* The whole wordmark is three horizontal bands: a bar, its lane, and the matching slice of WAY.
   --p follows the pointer across the wordmark (-1 to 1) and slides the bands apart. */
/* the font's own kerning pulls W, A and Y into each other; the letters sit at their plain widths */
.mark { --p: 0; cursor: pointer; font-kerning: none; font-feature-settings: "kern" 0; }

.xi-row {
  display: block;
  position: relative;
  height: 0.1953em;
  transform: translateX(calc(var(--p) * var(--k)));
  transition: transform 0.5s var(--ease-out);
}
.xi-row + .xi-row { margin-top: 0.0488em; }
.xi-row:nth-child(1), .slice:nth-child(2) { --k: 0.09em; }
.xi-row:nth-child(2), .slice:nth-child(3) { --k: -0.06em; }
.xi-row:nth-child(3), .slice:nth-child(4) { --k: 0.13em; }

.bar {
  position: absolute;
  inset: 0;
  background: var(--white);
  transform-origin: left center;
}

.lane {
  position: absolute;
  left: 100%;
  top: 50%;
  width: 100vw;
  height: 2px;
  margin-top: -1px;
  background: rgba(255, 255, 255, 0.3);
  transform-origin: left center;
  transition: background-color 0.3s;
}
.xi-row.hot .lane { background: var(--white); }

.pulse {
  position: absolute;
  left: 0;
  top: -11px;
  height: 22px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}
.pulse:empty { top: -4px; width: 48px; height: 8px; padding: 0; background: var(--lilac); }

.way {
  position: relative;
  z-index: 1;
  display: inline-block;
}
/* keeps the space for the letters; the three slices draw them */
.way-size { visibility: hidden; }

.slice {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateX(calc(var(--p) * var(--k)));
  transition: transform 0.5s var(--ease-out);
}
/* cut on the same lines as the gaps between the bars (0.411em and 0.655em below the line top),
   overlapping by a pixel so no seam shows when the bands sit together */
.slice:nth-child(2) { clip-path: inset(-0.3em -0.2em calc(100% - 0.411em - 0.5px) -0.2em); }
.slice:nth-child(3) { clip-path: inset(calc(0.411em - 0.5px) -0.2em calc(100% - 0.655em - 0.5px) -0.2em); }
.slice:nth-child(4) { clip-path: inset(calc(0.655em - 0.5px) -0.2em -0.3em -0.2em); }

/* The opening: bars snap in, lanes fire across the screen,
   then each band of WAY arrives along its own lane and the bar flashes as it locks. */
.mark.intro .bar {
  animation:
    bar-in 0.5s var(--ease-out) backwards,
    bar-flash 0.6s ease-out;
}
.mark.intro .xi-row:nth-child(1) .bar { animation-delay: 0s, 1.02s; }
.mark.intro .xi-row:nth-child(2) .bar { animation-delay: 0.08s, 1.15s; }
.mark.intro .xi-row:nth-child(3) .bar { animation-delay: 0.16s, 1.28s; }

.mark.intro .lane { animation: lane-in 0.7s cubic-bezier(0.7, 0, 0.2, 1) 0.3s backwards; }
.mark.intro .xi-row:nth-child(2) .lane { animation-delay: 0.38s; }
.mark.intro .xi-row:nth-child(3) .lane { animation-delay: 0.46s; }

.mark.intro .slice { animation: slice-in 0.95s linear backwards; }
.mark.intro .slice:nth-child(2) { animation-delay: 0.45s; }
.mark.intro .slice:nth-child(3) { animation-delay: 0.58s; }
.mark.intro .slice:nth-child(4) { animation-delay: 0.71s; }

@keyframes bar-in { from { transform: scaleX(0); } }
@keyframes bar-flash { 12% { background: var(--lilac); } }
@keyframes lane-in { from { transform: scaleX(0); } }
@keyframes slice-in {
  0% { transform: translateX(105vw) skewX(-28deg); animation-timing-function: cubic-bezier(0.1, 0.8, 0.2, 1); }
  62% { transform: translateX(-0.05em) skewX(4deg); animation-timing-function: ease-in-out; }
  82% { transform: translateX(0.012em) skewX(-1deg); animation-timing-function: ease-out; }
  100% { transform: none; }
}

/* ---------- pitch ---------- */

.stage {
  display: grid;
  gap: clamp(36px, 6vh, 64px);
  margin-top: clamp(20px, 4vh, 44px);
}

.pitch {
  max-width: 34rem;
  animation: fade-in 0.8s ease-out 1.35s both;
}

.lead {
  margin: 0;
  font-size: clamp(2.1rem, 3.8vw, 3.5rem);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
[dir="rtl"] .lead { letter-spacing: 0; line-height: 1.4; }

.sub {
  margin: 14px 0 0;
  font-size: 1.0625rem;
  max-width: 30rem;
  color: rgba(255, 255, 255, 0.78);
}

.notify { margin-top: 28px; }

/* hidden from people, left for bots to fill */
.trap {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.notify-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 8px;
}

/* one white pill with the button sitting inside it */
.notify-row {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: var(--white);
}
.notify-row:focus-within { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35); }

.notify input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 50px;
  padding: 0 18px;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 999px;
  text-align: left;
}
.notify input[type="text"]::placeholder { color: #6b6b74; }
.notify input[type="text"]:focus-visible { outline: none; }

.notify button {
  flex: 0 0 auto;
  min-height: 50px;
  padding: 0 24px;
  font: inherit;
  font-weight: 600;
  color: var(--white);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.notify button:hover { background: var(--graphite); }
.notify button:active { background: #000; }
.notify button:focus-visible { outline: 3px solid var(--white); outline-offset: -6px; }

/* on narrow phones the field and the button stack inside one rounded card */
@media (max-width: 459px) {
  .notify-row { flex-direction: column; border-radius: 26px; }
  .notify input[type="text"] { padding: 0 14px; }
}
.notify button[disabled] { opacity: 0.7; cursor: default; }

.notify-msg {
  min-height: 1.5em;
  margin: 14px 0 0;
  font-size: 0.9375rem;
  font-weight: 400;
}
.notify-msg.bad { font-weight: 500; }
.notify-msg.bad::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-inline-end: 8px;
  border-radius: 50%;
  background: var(--lilac);
}

.notify.done .notify-row,
.notify.done .notify-label { display: none; }
.notify.done .notify-msg { font-size: 1.125rem; font-weight: 500; margin-top: 0; }

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

/* ---------- the split ---------- */
/* a price is one solid lime block; it splits into four equal payments:
   white for the one made today, lilac for the ones still to come */

.calc {
  color: var(--white);
  animation: fade-in 0.8s ease-out 1.35s both;
}
.calc h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
[dir="rtl"] .calc h2 { letter-spacing: 0; line-height: 1.4; }

/* holds the tallest block, so the page stays still while the slider moves */
.whole-space { position: relative; z-index: 1; min-height: 290px; display: flex; flex-direction: column; justify-content: flex-end; }
.whole {
  --fill: 22%;
  width: 100%;
  height: calc(172px + var(--grow, 0.22) * 64px);
  padding: 18px 20px 12px;
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  background: var(--lime);
  color: var(--ink);
}
.whole-shop { margin: 0; font-size: 0.9375rem; font-weight: 500; }
.whole-price {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
[dir="rtl"] .whole-price { align-self: flex-start; }
/* amounts lead; the unit is smaller and softer */
.iqd { font-size: 0.45em; font-weight: 500; letter-spacing: 0; opacity: 0.65; }

#price {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  margin: 4px 0 0;
  background: transparent;
  cursor: pointer;
}
#price::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(var(--ink), var(--ink)) 0 0 / var(--fill) 100% no-repeat, rgba(14, 14, 16, 0.18);
}
[dir="rtl"] #price::-webkit-slider-runnable-track { background-position: 100% 0; }
#price::-moz-range-track { height: 8px; border-radius: 999px; background: rgba(14, 14, 16, 0.18); }
#price::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--ink); }
#price::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -10px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
}
#price::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 10px; background: var(--ink); }
main #price:focus-visible { outline: 3px solid var(--ink); outline-offset: -6px; border-radius: 16px; }

.calc-plan {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.calc-plan li {
  display: grid;
  align-content: end;
  gap: 2px;
  min-height: 112px;
  padding: 14px;
  border-radius: 20px;
  background: var(--lilac);
  color: var(--ink);
  white-space: nowrap;
}
.calc-plan li.now { background: var(--white); }
.calc-plan bdi {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.3125rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
[dir="rtl"] .calc-plan bdi { justify-self: start; }
.calc-plan span { font-size: 0.8125rem; font-weight: 400; opacity: 0.75; }

/* the split itself: four quarters drop out of the lime block and take their colours */
.calc.live .calc-plan li { animation: split-out 0.75s var(--ease-out) calc(var(--n) * 70ms) backwards; }
@keyframes split-out {
  from { transform: translateY(-120px); background: var(--lime); }
  55% { background: var(--lime); }
}
.calc-sum { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 18px 0 0; }
.calc-sum div { display: flex; gap: 8px; font-size: 0.9375rem; }
.calc-sum dt { color: rgba(255, 255, 255, 0.7); }
.calc-sum dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* stacked layouts keep the block at one height, so nothing above it leaves a gap */
@media (max-width: 1099px) {
  .whole-space { min-height: 0; }
  .whole { height: 200px; }
}

@media (max-width: 459px) {
  .calc-plan { gap: 6px; }
  .calc-plan li { min-height: 92px; padding: 10px 9px; border-radius: 16px; }
  .calc-plan bdi { font-size: 0.9375rem; }
  .calc-plan span { font-size: 0.75rem; }
}

@media (min-width: 1100px) {
  .stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: end;
    gap: clamp(32px, 5vw, 80px);
  }
}

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

.steps { padding: clamp(64px, 9vw, 120px) var(--gutter) 0; }
.steps-inner { max-width: 1240px; margin: 0 auto; }
.steps h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw, 4.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
[dir="rtl"] .steps h2 { letter-spacing: 0; line-height: 1.3; }

/* one purchase followed through: the choice, the first payment, the months after */
.step-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: clamp(24px, 3.4vw, 40px) 0 0;
  padding: 0;
  list-style: none;
}
.step {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: 28px;
}
.s-pick { background: var(--bone); }
.s-pay { background: var(--lime); }
.s-rest { background: var(--ink); color: var(--white); }
@media (min-width: 900px) {
  .step-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step { min-height: 480px; }
}

.step-when { margin: 0; font-size: 0.9375rem; font-weight: 600; opacity: 0.72; }
.step h3 {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
[dir="rtl"] .step h3 { font-size: clamp(1.7rem, 2.2vw, 2.1rem); letter-spacing: 0; line-height: 1.35; }
.step-text { margin: 10px 0 24px; font-weight: 400; opacity: 0.78; }

.step-ui { display: grid; gap: 8px; margin-top: auto; }
.step-ui bdi { font-variant-numeric: tabular-nums; white-space: nowrap; }

.way-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 10px 18px;
  border-radius: 18px;
  background: var(--white);
  font-weight: 500;
}
.way-row i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(14, 14, 16, 0.22);
  border-radius: 50%;
}
.way-row.on { min-height: 92px; background: var(--ink); color: var(--white); }
.way-row.on > span { display: grid; gap: 2px; }
.way-row.on b { font-family: var(--font-display); font-size: 1.375rem; font-weight: 800; line-height: 1.1; }
[dir="rtl"] .way-row.on bdi { justify-self: start; }
.way-row.on i { border: 0; background: var(--white); color: var(--ink); }

.agree { padding: 22px 20px 20px; border-radius: 24px; background: var(--white); }
.agree-sum {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
[dir="rtl"] .agree-sum { justify-self: start; }
.agree-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9375rem; }
.agree-row > span { color: var(--ink-soft); }
.agree-row bdi { font-weight: 600; }
.agree-btn {
  margin-top: 10px;
  padding: 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  text-align: center;
  font-weight: 600;
}

.mo {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 18px;
  border-radius: 18px;
  background: var(--lilac);
  color: var(--ink);
  font-weight: 500;
}
.mo.paid { background: var(--white); }
.mo bdi { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.mo-state { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8125rem; opacity: 0.72; white-space: nowrap; }

/* ---------- products ---------- */

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 28px);
}
.top-nav a {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  transition: background-color 0.2s;
}
.top-nav a:hover { background: var(--bone); }

.suite {
  background: var(--white);
  color: var(--ink);
  padding: clamp(64px, 10vw, 128px) var(--gutter) clamp(72px, 10vw, 136px);
  scroll-margin-top: 0;
}
.suite-inner { max-width: 1240px; margin: 0 auto; }

.suite-head { max-width: 40rem; }
.suite-head h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: clamp(2.4rem, 5.4vw, 4.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
[dir="rtl"] .suite-head h2 { letter-spacing: 0; line-height: 1.3; }
.suite-head p {
  margin: 18px 0 0;
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 34rem;
}

/* ---------- product cards (Revolut-style) ---------- */
/* Bold single-colour cards at different sizes. Big cards hold a real-looking eWAY screen;
   smaller ones show the product in one large, simple picture. */

.rgroup { margin-top: clamp(48px, 7vw, 88px); }
.rgroup-name {
  font-family: var(--font-display);
  margin: 0 0 18px;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}
[dir="rtl"] .rgroup-name { letter-spacing: 0; }

.rgrid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

.rcard {
  --bg: var(--bone);
  --fg: var(--ink);
  --soft: rgba(14, 14, 16, 0.68);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: 28px;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  isolation: isolate;
}
.c-ink { --bg: var(--ink); --fg: var(--white); --soft: rgba(255, 255, 255, 0.72); }
.c-graphite { --bg: var(--graphite); --fg: var(--white); --soft: rgba(255, 255, 255, 0.74); }
.c-bone { --bg: var(--bone); --fg: var(--ink); --soft: rgba(14, 14, 16, 0.68); }
.c-lilac { --bg: var(--lilac); --fg: var(--ink); --soft: rgba(14, 14, 16, 0.72); }
/* lime belongs to pay later, and nothing else on the page's white part */
.c-lime { --bg: var(--lime); --fg: var(--ink); --soft: rgba(14, 14, 16, 0.72); }

.rc-text { position: relative; z-index: 1; max-width: 26rem; }
.rc-name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--soft);
}
.rc-line {
  font-family: var(--font-display);
  margin: 6px 0 0;
  font-size: clamp(1.55rem, 2.3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
[dir="rtl"] .rc-line { letter-spacing: 0; line-height: 1.3; }
.sz-big .rc-line { font-size: clamp(2rem, 3.6vw, 3.25rem); }
.rc-desc {
  margin: 12px 0 0;
  max-width: 22rem;
  font-size: 1rem;
  font-weight: 400;
  color: var(--soft);
}

.rc-visual {
  position: relative;
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  justify-content: flex-start;
}
.rc-visual > * { transition: transform 0.5s var(--ease-out); }
@media (hover: hover) {
  .rcard:hover .rc-visual > * { transform: translateY(-8px); }
}

.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ----- phone ----- */
.phone-mock {
  width: 240px;
  padding: 9px;
  margin-bottom: -110px;
  border-radius: 38px;
  background: var(--ink);
}
.c-ink .phone-mock { background: var(--graphite); }
.ph-screen {
  height: 440px;
  padding: 14px 14px 0;
  border-radius: 30px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 400;
  overflow: hidden;
}
.ph-bar { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 0.6875rem; }
.ph-dots { display: flex; gap: 3px; }
.ph-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink); }
.ph-balance { display: grid; gap: 2px; margin-top: 22px; }
.ph-label { color: var(--ink-soft); }
.ph-big { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.ph-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 16px; }
.ph-actions span {
  padding: 8px 4px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  text-align: center;
  font-weight: 600;
}
.ph-actions span + span { background: var(--bone); color: var(--ink); }
.ph-list { display: grid; gap: 10px; margin-top: 20px; }
.ph-row { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; }
.ph-row .num { font-weight: 600; }
.av {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bone);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.6875rem;
}
.ph-plan { display: grid; gap: 6px; margin-top: 18px; }
.ph-step {
  display: flex;
  justify-content: space-between;
  padding: 9px 10px;
  border-radius: 12px;
  background: var(--lilac);
}
.ph-step .num { font-weight: 600; }
.ph-step.now { background: var(--bone); }
.ph-cta {
  display: block;
  margin-top: 14px;
  padding: 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  text-align: center;
  font-weight: 700;
}

/* ----- browser checkout ----- */
.browser-mock {
  width: min(100%, 400px);
  margin-bottom: -40px;
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  overflow: hidden;
  font-size: 0.875rem;
}
.br-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bone); font-size: 0.75rem; color: var(--ink-soft); }
.br-bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfc9bb; }
.br-bar span { margin-inline-start: 8px; }
.br-body { display: grid; gap: 14px; padding: 18px 18px 52px; }
.br-row { display: flex; justify-content: space-between; gap: 10px; }
.br-row .num { font-weight: 700; }
.br-pay { padding: 12px; border-radius: 10px; background: var(--ink); color: var(--white); text-align: center; font-weight: 700; }
.browser-mock code { font-family: var(--font-till); font-size: 0.75rem; color: var(--ink); }

/* ----- card ----- */
.plastic2 {
  position: relative;
  width: 220px;
  height: 138px;
  margin-bottom: -40px;
  border-radius: 14px;
  background: var(--bone);
  color: var(--ink);
  transform: rotate(-8deg);
}
.p2-bars { position: absolute; left: 16px; top: 16px; display: grid; gap: 2px; width: 20px; }
.p2-bars i { height: 4px; background: var(--ink); }
.p2-brand { position: absolute; right: 16px; top: 14px; font-family: var(--font-brand); font-size: 0.95rem; font-kerning: none; }
.p2-chip { position: absolute; left: 16px; top: 52px; width: 34px; height: 25px; border-radius: 5px; background: var(--lilac); }
.p2-pan { position: absolute; left: 16px; bottom: 14px; font-family: var(--font-till); font-size: 0.8125rem; letter-spacing: 0.08em; }

/* ----- big figures and codes ----- */
.big-figure { display: grid; gap: 4px; }
.fig { font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.fig-sub { font-size: 0.875rem; font-weight: 500; color: var(--soft); }
.code-tile {
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
}
.ct-label { font-size: 0.8125rem; font-weight: 500; color: var(--ink-soft); }
.code-tile b { font-family: var(--font-display); font-size: 2.25rem; font-weight: 800; letter-spacing: 0.12em; }

/* ----- pills ----- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
}
.c-ink .pill { background: rgba(255, 255, 255, 0.1); color: var(--white); }

/* ----- chat ----- */
.chat { display: grid; gap: 8px; justify-items: start; width: 100%; }
.bubble2 {
  max-width: 90%;
  padding: 9px 14px;
  border-radius: 18px 18px 18px 4px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
}
.bubble2.me { justify-self: end; border-radius: 18px 18px 4px 18px; background: var(--ink); color: var(--white); font-family: var(--font-till); }

/* ----- terminal, tap ----- */
.device2 { width: 120px; padding: 9px; margin-bottom: -50px; border-radius: 16px; background: var(--ink); }
.c-graphite .device2 { background: var(--bone); }
.c-graphite .d2-keys i { background: #d3ccbc; }
.c-graphite .d2-keys i:last-child { background: var(--ink); }
.d2-screen { display: grid; gap: 2px; padding: 12px 8px; border-radius: 8px; background: var(--white); color: var(--ink); text-align: center; font-size: 0.6875rem; }
.d2-screen .num { font-size: 1.1rem; font-weight: 700; }
.d2-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 9px; }
.d2-keys i { height: 10px; border-radius: 3px; background: var(--graphite); }

.tap2 { position: relative; display: flex; align-items: center; gap: 10px; }
.t2-phone { width: 62px; height: 112px; margin-bottom: -40px; border-radius: 14px; background: var(--ink); }
.t2-waves { position: relative; width: 60px; height: 60px; }
.t2-waves i { position: absolute; inset: 0; margin: auto; border: 3px solid var(--ink); border-radius: 50%; opacity: 0.85; }
.t2-waves i:nth-child(1) { width: 18px; height: 18px; }
.t2-waves i:nth-child(2) { width: 38px; height: 38px; opacity: 0.55; }
.t2-waves i:nth-child(3) { width: 58px; height: 58px; opacity: 0.3; }

/* ----- invoice ----- */
.inv {
  position: relative;
  display: grid;
  gap: 8px;
  width: min(100%, 250px);
  margin-bottom: -50px;
  padding: 16px 16px 40px;
  border-radius: 12px 12px 0 0;
  background: var(--white);
  color: var(--ink);
  font-size: 0.8125rem;
}
.inv-row { display: flex; justify-content: space-between; gap: 8px; font-family: var(--font-till); }
.inv-row .num { font-family: var(--font-ui); font-weight: 700; }
.inv > i { height: 6px; border-radius: 3px; background: #e7e2d6; }
.inv > i.s { width: 60%; }
.inv-stamp {
  position: absolute;
  inset-inline-end: 14px;
  bottom: 52px;
  padding: 2px 10px;
  border: 3px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 800;
  transform: rotate(-10deg);
}

/* ----- billing, split, ewa ----- */
.months2 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; width: 100%; }
.months2 i { height: 40px; border-radius: 10px; background: rgba(14, 14, 16, 0.14); }
.months2 i.on { background: var(--ink); }
.m2-line { display: flex; justify-content: space-between; width: 100%; margin-top: 10px; font-size: 0.875rem; font-weight: 600; }
.v-billing .rc-visual { flex-direction: column; }

.v-split .rc-visual { flex-direction: column; gap: 12px; }
.split2 { display: flex; width: 100%; height: 22px; border-radius: 999px; overflow: hidden; background: var(--white); }
.split2 i { width: var(--w); height: 100%; }
.split2 i:nth-child(1) { background: var(--ink); }
.split2 i:nth-child(2) { background: #8d8d97; }
.split2 i:nth-child(3) { background: var(--lilac); }
.legend2 { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.875rem; font-weight: 500; }
.legend2 .num { font-weight: 700; }

.ewa2 { display: grid; gap: 10px; width: 100%; }
.ewa-bar { height: 22px; border-radius: 999px; background: rgba(14, 14, 16, 0.14); overflow: hidden; }
.ewa-bar i { display: block; width: 50%; height: 100%; border-radius: 999px; background: var(--ink); }
.ewa-line { display: flex; justify-content: space-between; font-size: 0.875rem; font-weight: 600; }

/* ----- pay on delivery ----- */
.qr2 { display: flex; align-items: center; gap: 14px; }
.qr2 .q {
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  border: 6px solid var(--white);
  border-radius: 10px;
  background: conic-gradient(var(--ink) 25%, var(--white) 0 50%, var(--ink) 0 75%, var(--white) 0) 0 0 / 12px 12px;
}
.q-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; }

/* ----- payroll ----- */
.team { display: grid; gap: 8px; width: 100%; }
.tm { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; font-size: 0.8125rem; }
.tm .num { font-weight: 700; }
.c-ink .team .av { background: rgba(255, 255, 255, 0.14); color: var(--white); }

/* ----- for banks ----- */
.layers2 { display: grid; gap: 8px; width: min(100%, 420px); }
.l2 { padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--white); font-size: 0.9375rem; font-weight: 600; }
.l2.top { background: var(--white); color: var(--ink); }

/* ----- layout ----- */
@media (min-width: 640px) {
  .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sz-big, .sz-wide { grid-column: span 2; }
  .sz-big { min-height: 520px; }
}
@media (min-width: 980px) {
  .rgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 300px; }
  .rcard { grid-column: var(--col); grid-row: var(--row); min-height: 0; }
  .rgroup[data-lane="2"] .rgrid { grid-auto-rows: 340px; }
  .rgroup[data-lane="all"] .rgrid { grid-auto-rows: 330px; }
  .sz-big .rc-visual { position: absolute; inset-inline-end: 7%; bottom: 0; padding: 0; }
  .sz-big .phone-mock { margin-bottom: -60px; }
  .sz-big .browser-mock { margin-bottom: 40px; width: 420px; }
  .sz-big .rc-text { max-width: 46%; }
}

/* each group rises in once when it comes into view */
.reveal .rcard { opacity: 0; transform: translateY(40px); }
.reveal .rgroup.shown .rcard {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease-out, transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.reveal .rgroup.shown .sz-big .rc-visual > * { animation: lift-in 1.1s var(--ease-out) 0.25s backwards; }
@keyframes lift-in { from { transform: translateY(90px); } }

/* ---------- closing ---------- */

/* a big rounded ink card that bookends the hero */
.closing {
  position: relative;
  overflow: hidden;
  margin: 0 var(--edge);
  padding: clamp(56px, 9vw, 128px) calc(var(--gutter) - var(--edge));
  border-radius: clamp(28px, 3vw, 40px);
  background: var(--ink);
  color: var(--white);
}
/* the three bars, run out to the card's edge */
.closing::after {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  width: min(36vw, 480px);
  height: clamp(96px, 13vw, 176px);
  transform: translateY(-50%);
  background:
    linear-gradient(var(--graphite), var(--graphite)) 0 0 / 100% 28.6% no-repeat,
    linear-gradient(var(--graphite), var(--graphite)) 0 50% / 100% 28.6% no-repeat,
    linear-gradient(var(--graphite), var(--graphite)) 0 100% / 100% 28.6% no-repeat;
  pointer-events: none;
}
@media (max-width: 899px) { .closing::after { display: none; } }
.closing > * { position: relative; z-index: 1; }
.closing h2 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
[dir="rtl"] .closing h2 { letter-spacing: 0; line-height: 1.3; }
.closing-btn {
  display: inline-block;
  margin-top: 32px;
  padding: 16px 30px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
}
.closing-btn:hover { background: var(--white); }

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

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding: clamp(28px, 4vw, 44px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--ink-soft);
}
.foot p { margin: 0; }

/* the wordmark, small and still */
.foot-mark {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--ink);
  font-kerning: none;
  font-feature-settings: "kern" 0;
  text-decoration: none;
}
.foot-mark .xi-row { transform: none; }
.foot-mark .xi-row + .xi-row { margin-top: 0.0488em; }
.foot-mark .bar { background: var(--ink); border-radius: 0; }

.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
}
.foot-links a { color: var(--ink); font-weight: 600; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }

/* ---------- less motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
