/* ==========================================================================
   Paymesh prototype — design tokens
   Values taken from the Figma source file (fills, radii, type ramp).
   ========================================================================== */

:root {
  /* Brand */
  --brand: #503ff1;
  --brand-press: #4331d4;
  --brand-soft: #eeebfe;

  /* Ink */
  --ink: #000000;
  --ink-strong: #0c0e10;
  --ink-logo: #242430;
  --muted: #6e6e6e;
  --muted-2: #8a8a8a;

  /* Lines & surfaces */
  --line: #d4d4d4;
  --line-soft: #e7e7e7;
  --surface: #ffffff;
  --surface-2: #efeded;
  --surface-3: #f7f6f6;

  /* Status */
  --danger: #ea4335;
  --danger-soft: #fdeceb;
  --success: #16a34a;

  /* Shape */
  --r-input: 16px;
  --r-btn: 16px;
  --r-card: 16px;
  --r-pill: 999px;

  /* Type */
  --font-display: "Rebond Grotesque", "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Metrics */
  --col: 396px;
  --control-h: 50px;
  --page-pad: 40px;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */

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

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.01em; /* Inter is set at -1% throughout */
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; margin: 0; }

button { font: inherit; color: inherit; }
input, select { font: inherit; color: inherit; }

a { color: inherit; }

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

::placeholder { color: var(--muted-2); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Page shell
   ========================================================================== */

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: var(--page-pad);
  background: var(--surface);
}

.page__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
}

.page__body {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  padding: 56px 0 40px;
}

.page__footer {
  flex: 0 0 auto;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding-top: 24px;
}

.page__footer a { text-decoration: underline; text-underline-offset: 2px; }

/* Vertically-centred variant used by the short screens */
.page--center .page__body { align-items: center; padding-top: 0; }

.stack { width: var(--col); max-width: 100%; }
.stack--wide { width: 425px; }

/* ==========================================================================
   Logo
   ========================================================================== */

.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo svg { height: 32px; width: auto; }
.logo--mark svg { height: 28px; }

/* ==========================================================================
   Typography helpers
   ========================================================================== */

.h1 { font-family: var(--font-display); font-size: 32px; line-height: 1.14; font-weight: 700; }
.h2 { font-family: var(--font-display); font-size: 24px; line-height: 1.2; font-weight: 700; }
.h3 { font-family: var(--font-display); font-size: 18px; line-height: 1.3; font-weight: 700; }

.lede { font-size: 14px; color: var(--ink-strong); margin-top: 10px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.strong { font-weight: 600; }

.link {
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
}
.link:hover { opacity: 0.7; }
.link svg { vertical-align: -3px; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: var(--control-h);
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, opacity .15s ease;
}

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-press); }

.btn--secondary { background: #fff; color: var(--ink); border-color: var(--line); font-weight: 400; }
.btn--secondary:hover { background: var(--surface-3); }

.btn--ghost { background: transparent; border-color: transparent; font-weight: 500; }

/* Buttons are never disabled — a missing detail is reported under the button. */
.btn--busy { cursor: progress; }

.btn__spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-row { display: flex; gap: 12px; }
.btn-row .btn { flex: 1; }

/* Cancel link that sits under the primary action */
.under-action { display: block; margin: 20px auto 0; text-align: center; font-size: 14px; }

/* ==========================================================================
   Divider with label
   ========================================================================== */

.or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  font-size: 14px;
}
.or::before, .or::after { content: ""; height: 1px; background: var(--ink); opacity: .25; }

/* ==========================================================================
   Form fields
   ========================================================================== */

.field { margin-top: 18px; }
.field:first-child { margin-top: 0; }

.field__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}
.field__req { color: var(--danger); }

.field__hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

.field__error { font-size: 12px; color: var(--danger); margin-top: 6px; }

.input {
  width: 100%;
  height: var(--control-h);
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  font-size: 16px;
  font-weight: 500;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(80,63,241,.12); }
.input[aria-invalid="true"] { border-color: var(--danger); }

select.input { appearance: none; cursor: pointer; background-image: none; }

.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute; right: 18px; top: 50%;
  width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink);
  transform: rotate(45deg);
  pointer-events: none;
}

/* Password field with reveal toggle */
.input-affix { position: relative; }
.input-affix .input { padding-right: 52px; }
.input-affix__btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; border-radius: 8px;
}
.input-affix__btn:hover { background: var(--surface-3); }

/* Postcode lookup with an address dropdown */
.combo { position: relative; }
.combo__list {
  position: absolute; z-index: 20;
  top: calc(100% + 6px); left: 0; right: 0;
  margin: 0; padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .13);
  max-height: 268px; overflow-y: auto;
}
.combo__opt {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}
.combo__opt:hover,
.combo__opt[aria-selected="true"] { background: var(--brand-soft); }
.combo__opt small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.combo__empty { padding: 10px 12px; font-size: 13px; color: var(--muted); }

/* Phone field: dial-code select + number */
.phone { display: grid; grid-template-columns: 126px 1fr; }
.phone .phone__code {
  position: relative;
  height: var(--control-h);
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px 0 14px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: var(--r-input) 0 0 var(--r-input);
  font-size: 16px;
  background: #fff;
  cursor: pointer;
}
.phone__code [data-dial] { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.phone__code svg:last-of-type { margin-left: auto; flex: 0 0 auto; }

/* A real select, laid over the prefix so the flag and dial code show through */
.phone__select {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
  appearance: none; border: 0; background: none;
}
.phone__code:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(80, 63, 241, .12); }
.phone .input { border-radius: 0 var(--r-input) var(--r-input) 0; }
.flag { width: 22px; height: 16px; border-radius: 3px; flex: 0 0 auto; }

/* Password strength: a label, a verdict, and four segments */
.strength { margin-top: 16px; }

.strength__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.strength__title { font-size: 14px; }
.strength__label { font-size: 14px; font-weight: 600; color: var(--strength-color); }

.strength__bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.strength__bars span {
  height: 4px;
  border-radius: 2px;
  background: var(--line-soft);
  transition: background-color .2s ease;
}

.strength[data-level="1"] { --strength-color: var(--danger); }
.strength[data-level="2"] { --strength-color: #f0932b; }
.strength[data-level="3"] { --strength-color: #7cb342; }
.strength[data-level="4"] { --strength-color: var(--success); }

.strength[data-level="1"] .strength__bars span:nth-child(-n + 1),
.strength[data-level="2"] .strength__bars span:nth-child(-n + 2),
.strength[data-level="3"] .strength__bars span:nth-child(-n + 3),
.strength[data-level="4"] .strength__bars span:nth-child(-n + 4) {
  background: var(--strength-color);
}

/* ==========================================================================
   OTP input
   ========================================================================== */

.otp { display: flex; gap: 14px; margin: 24px 0 18px; }
.otp__box {
  width: var(--control-h); height: var(--control-h);
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.otp__box:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(80,63,241,.12); }
.otp[data-invalid="true"] .otp__box { border-color: var(--danger); }

.resend { font-size: 12px; text-align: center; color: var(--ink-strong); margin-bottom: 22px; }

/* ==========================================================================
   Stepper (registration)
   ========================================================================== */

.stepper { display: flex; justify-content: center; gap: 28px; margin-bottom: 32px; }
.step { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); white-space: nowrap; }
.step__dot { display: inline-flex; flex: 0 0 auto; }
.step--done { color: var(--brand); }
.step--current { font-weight: 500; }

/* ==========================================================================
   Card (payment / pending payment)
   ========================================================================== */

.card {
  width: 425px;
  max-width: 100%;
  background: var(--surface-2);
  border-radius: var(--r-card);
  padding: 2px;
}
.card__head { padding: 16px 20px 14px; }
.card__head h2 { font-size: 20px; }
.card__head p { margin: 6px 0 0; font-size: 14px; color: var(--ink-strong); }
.card__body {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  padding: 24px 22px;
}

/* Merchant identity block */
.merchant { text-align: center; }
.merchant__logo {
  width: 48px; height: 48px; border-radius: 50%;
  margin: 0 auto 10px;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  font-family: var(--font-display);
}
img.merchant__logo { display: block; object-fit: cover; }
.merchant__name { display: block; font-size: 14px; }

.amount { text-align: center; margin: 18px 0 20px; }
.amount__value { font-family: var(--font-display); font-size: 38px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.amount__sub { font-size: 16px; color: var(--muted); margin-top: 6px; }
.amount__label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }

/* Rows inside the payment card */
.rowline { border-top: 1px solid var(--line-soft); }

.row {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  align-items: flex-start;
}
.row__icon { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; color: var(--ink); }
.row__main { flex: 1 1 auto; min-width: 0; }
.row__title { display: block; font-size: 14px; }
.row__sub { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.row__side { text-align: right; flex: 0 0 auto; }
.row__amount { display: block; font-size: 14px; }
.row__amount-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.row--danger .row__title,
.row--danger .row__amount,
.row--danger .row__amount-sub { color: var(--danger); }

.note { font-size: 14px; padding: 4px 0 14px; }

/* Selectable funding card */
.choice {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 14px 0;
  background: none; border: 0; cursor: pointer; text-align: left;
}
.choice__brand {
  width: 40px; height: 28px; border-radius: 6px;
  border: 1px solid var(--line-soft);
  display: grid; place-items: center;
  flex: 0 0 auto;
  background: #fff;
}
.choice__main { flex: 1 1 auto; }
.choice__radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--line);
  flex: 0 0 auto;
  display: grid; place-items: center;
}
.choice[aria-checked="true"] .choice__radio { border-color: var(--brand); border-width: 5px; }

/* "Add new card" — a link, not a button, so the cards stay the emphasis */
.add-card {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 16px 0;
  background: none; border: 0;
  font-size: 16px; text-align: left;
  cursor: pointer;
}
.add-card span { text-decoration: underline; text-underline-offset: 3px; }
.add-card:hover span { opacity: .7; }

/* Transfer visual (authorize screen) */
.transfer { display: flex; align-items: flex-start; justify-content: center; gap: 26px; margin: 22px 0 26px; }
.transfer__end { text-align: center; width: 132px; }
.transfer__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  margin: 0 auto 8px;
  display: grid; place-items: center;
  color: #fff;
}
img.transfer__avatar { display: block; object-fit: cover; }
.transfer__label { display: block; font-size: 12px; font-weight: 500; }
.transfer__arrow { margin-top: 12px; color: var(--ink); }

/* Error status shown under a primary action */
.alert {
  display: flex; gap: 8px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--danger);
}
.alert__icon { flex: 0 0 auto; margin-top: 2px; }
.alert a { text-decoration: underline; }

/* ==========================================================================
   Result screens
   ========================================================================== */

.result { text-align: center; }
.result__art { display: block; width: 168px; height: auto; margin: 0 auto 8px; }
.result__title { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.result__body { font-size: 14px; margin: 10px auto 26px; max-width: 340px; }

/* ==========================================================================
   Split login (scenario 1 — arriving from the Paymesh website)
   ========================================================================== */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; min-height: 100vh; min-height: 100dvh; padding: var(--page-pad); }
.split__left { display: flex; flex-direction: column; }
.split__content { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; }
.split__art {
  border-radius: 12px;
  background: url("../assets/auth-visual.png") center/cover no-repeat;
  min-height: 400px;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__art { display: none; }
}

/* ==========================================================================
   Google sign-in (imitates the Google account chooser from the design)
   ========================================================================== */

.google-page {
  min-height: 100vh; min-height: 100dvh;
  background: #131314;
  color: #e3e3e3;
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 24px;
  font-family: "Google Sans", var(--font-body);
}
.google-card { width: 100%; max-width: 400px; margin: auto 0; }
.google-card h1 { font-family: var(--font-body); font-size: 24px; font-weight: 400; color: #e3e3e3; margin: 18px 0 6px; }
.google-card p { color: #c4c7c5; font-size: 14px; margin: 0; }
.google-brand { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #c4c7c5; }
.google-list { margin: 28px 0 0; border-top: 1px solid #444746; }
.google-item {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 14px 4px;
  background: none; border: 0; border-bottom: 1px solid #444746;
  cursor: pointer; text-align: left; color: inherit;
}
.google-item:hover { background: #1e1f20; }
.google-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: #7b5cd6; color: #fff;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 500;
  flex: 0 0 auto;
}
.google-item__name { font-size: 14px; }
.google-item__mail { font-size: 12px; color: #9aa0a6; }
.google-fine { font-size: 12px; color: #9aa0a6; margin-top: 28px; line-height: 1.6; }
.google-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 32px; }
.google-btn {
  height: 40px; padding: 0 22px; border-radius: 999px;
  border: 1px solid #8e918f; background: transparent; color: #a8c7fa;
  font-size: 14px; font-weight: 500; cursor: pointer;
}
.google-btn--filled { background: #a8c7fa; color: #062e6f; border-color: transparent; }
.google-foot { display: flex; gap: 20px; font-size: 12px; color: #9aa0a6; margin-top: auto; padding-top: 40px; }

/* ==========================================================================
   Merchant demo checkout
   ========================================================================== */

.shop { min-height: 100vh; min-height: 100dvh; background: #fff; }
.shop__bar { border-bottom: 1px solid var(--line-soft); }
.shop__bar-in {
  max-width: 1040px; margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.shop__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.shop__mark { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; }
img.shop__mark { display: block; border-radius: 50%; object-fit: cover; }
.shop__grid {
  max-width: 1040px; margin: 0 auto; padding: 36px 24px 80px;
  display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start;
}
@media (max-width: 880px) { .shop__grid { grid-template-columns: 1fr; gap: 28px; } }

.shop__promo {
  display: flex; gap: 10px; align-items: center;
  background: #eef4ff; border-radius: 10px;
  padding: 12px 16px; font-size: 14px;
  max-width: 1040px; margin: 20px auto 0;
}

.pay-list { margin-top: 18px; border-top: 1px solid var(--line-soft); }
.pay-option {
  display: flex; gap: 14px; align-items: flex-start;
  width: 100%; padding: 16px 4px;
  border: 0; border-bottom: 1px solid var(--line-soft);
  background: none; cursor: pointer; text-align: left;
}
.pay-option:hover { background: var(--surface-3); }
.pay-option__radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid #767676; flex: 0 0 auto; margin-top: 2px;
  display: grid; place-items: center;
}
.pay-option[aria-checked="true"] .pay-option__radio { border: 5px solid var(--brand); }
.pay-option__logo {
  width: 46px; height: 30px; border-radius: 6px;
  border: 1px solid var(--line-soft); background: #fff;
  display: grid; place-items: center; flex: 0 0 auto;
}
.pay-option__main { flex: 1 1 auto; }
.pay-option__title { display: block; font-size: 14px; font-weight: 500; }
.pay-option__sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

.summary { background: var(--surface-2); border-radius: 12px; padding: 22px; }
.summary__row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.summary__total { display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 700; font-size: 18px; padding: 14px 0; border-top: 1px solid #d8d5d5; margin-top: 8px; }
.summary__fine { font-size: 12px; color: var(--muted); margin: 8px 0 18px; }
.summary__handoff { font-size: 13px; text-align: center; margin-bottom: 10px; }

/* ==========================================================================
   Paymesh app home (end of the "log in from the website" scenario)
   ========================================================================== */

.app-home { width: 480px; max-width: 100%; }
.balance-card {
  background: var(--surface-2);
  border-radius: var(--r-card);
  padding: 24px;
  margin-top: 22px;
}
.balance-card__label { font-size: 13px; color: var(--muted); }
.balance-card__value { font-family: var(--font-display); font-size: 34px; font-weight: 700; margin-top: 4px; }
.balance-card__sub { font-size: 12px; color: var(--muted); }
.activity { margin-top: 26px; }
.activity__item { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }

/* ==========================================================================
   Prototype control panel
   ========================================================================== */

.dev {
  position: fixed; left: 16px; bottom: 16px; z-index: 50;
  font-family: var(--font-body);
}
.dev__toggle {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 12px; font-weight: 500; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.dev__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.dev__panel {
  width: 320px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,.16);
  padding: 14px;
  margin-bottom: 10px;
}
.dev__title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.dev__item {
  display: block; width: 100%; text-align: left;
  padding: 9px 10px; margin-top: 4px;
  border: 0; border-radius: 8px; background: none; cursor: pointer;
  font-size: 13px; line-height: 1.35;
}
.dev__item:hover { background: var(--surface-3); }
.dev__item[aria-current="true"] { background: var(--brand-soft); color: var(--brand); font-weight: 500; }
.dev__num { font-weight: 600; margin-right: 6px; }
.dev__foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 8px; }
.dev__foot button { flex: 1 1 40%; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 12px; cursor: pointer; }
.dev__foot button:hover { background: var(--surface-3); }
[hidden] { display: none !important; }

/* ==========================================================================
   Narrow screens
   ========================================================================== */

@media (max-width: 560px) {
  :root { --page-pad: 20px; --col: 100%; }
  /* The prototype pill stays at the bottom, lifted above the browser's bottom
     bar (large minus small viewport is the room the bar takes). */
  .dev { bottom: calc(100lvh - 100svh + 12px + env(safe-area-inset-bottom)); left: 12px; }
  .dev__panel { width: min(320px, calc(100vw - 24px)); }
  .page__body { padding: 32px 0 24px; }
  .h1 { font-size: 26px; }
  .stepper { gap: 14px; }
  .step { font-size: 12px; }
  .otp { gap: 8px; }
  .otp__box { width: 100%; height: 52px; }
  .card { width: 100%; }
  .card__body { padding: 20px 16px; }
  .amount__value { font-size: 32px; }
  .shop__bar-in, .shop__grid { padding-left: 16px; padding-right: 16px; }
  .shop__promo { margin-left: 16px; margin-right: 16px; }
  .page__footer { padding-bottom: 44px; } /* clear the prototype pill */
  .dev__panel { width: min(320px, calc(100vw - 24px)); }
}

/* ==========================================================================
   Motion
   ========================================================================== */

.fade-in { animation: fade .22s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

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