/* RideLife app prototype: phone-width wallet UI on every screen size. */
.app-body { background: var(--ink); color: var(--paper); min-height: 100vh; }
.app-body .eyebrow { color: var(--lime); }

/* ---------- Top bar ---------- */
.abar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  max-width: 480px; margin: 0 auto; padding: 12px 16px; background: rgba(14, 22, 32, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.abar .brand__word { font-size: 20px; }
.abar .brand__mark { width: 26px; height: 26px; }
.abar__tag {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--warn); color: var(--ink); padding: 3px 8px; border-radius: var(--r-pill);
}
.abar .lang { margin-left: auto; }
.abar__demo { max-width: 480px; margin: 0 auto; padding: 0 16px 10px; font-size: 12.5px; color: var(--mist-2); line-height: 1.45; }

/* ---------- Layout ---------- */
.app { max-width: 480px; margin: 0 auto; padding: 8px 16px 32px; }
.step { padding-top: 8px; }
.step__title {
  font-family: var(--font-display); font-weight: 900; font-variation-settings: "wdth" 80;
  font-size: clamp(30px, 8.4vw, 40px); line-height: 1; letter-spacing: -.015em; text-transform: uppercase;
  margin: 12px 0 18px; outline: none;
}
.step__title--center, .step__lead--center { text-align: center; }
.step__lead { color: var(--mist); font-size: 16px; margin-bottom: 18px; }
.app__legal { margin-top: 36px; font-size: 12px; line-height: 1.55; color: var(--mist-2); border-top: 1px solid var(--line-dark); padding-top: 16px; }

.btn--block { width: 100%; }
.btn--outline-light { border-color: #4A5664; color: var(--paper); }
.btn--outline-light:hover { border-color: var(--paper); }
.cta { margin-top: 24px; }
.linkbtn {
  background: none; border: 0; padding: 4px 0; min-height: 32px; color: var(--lime); font-weight: 600; font-size: inherit;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* ---------- Progress ---------- */
.prog { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; padding: 4px 0 8px; }
.prog__back {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 10px 0 2px; margin-left: -4px;
  background: none; border: 0; color: var(--paper); font-weight: 600; cursor: pointer; border-radius: 10px;
}
.prog__txt { justify-self: end; font-size: 12px; letter-spacing: .08em; color: var(--mist-2); text-transform: uppercase; }
.prog__bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--ink-4); overflow: hidden; }
.prog__bar i { display: block; height: 100%; width: 20%; background: var(--lime); border-radius: 4px; transition: width .35s var(--ease); }

/* ---------- Step 1: picker ---------- */
.pick { background: var(--ink-3); border: 1px solid var(--line-dark); border-radius: var(--r-xl); padding: 20px 18px 22px; }
.pick__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pick__label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mist-2); }
.pick__pay { font-family: var(--font-display); font-weight: 800; font-size: 26px; font-variation-settings: "wdth" 90; }
.pick__arrow { display: flex; justify-content: center; color: var(--lime); margin: 8px 0 2px; }
.pick__get { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.pick__payout {
  font-family: var(--font-display); font-weight: 900; font-variation-settings: "wdth" 76; color: var(--lime);
  font-size: clamp(40px, 12.4vw, 58px); line-height: 1; letter-spacing: -.02em; overflow-wrap: anywhere;
}
.pick__if { font-size: 13.5px; color: var(--mist); }

.range {
  --pct: 50%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 14px 0 0; background: transparent; cursor: pointer;
}
.range::-webkit-slider-runnable-track { height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--lime) var(--pct), var(--ink-4) var(--pct)); }
.range::-moz-range-track { height: 10px; border-radius: 10px; background: var(--ink-4); }
.range::-moz-range-progress { height: 10px; border-radius: 10px; background: var(--lime); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 32px; height: 32px; margin-top: -11px; border-radius: 50%;
  background: var(--paper); border: 4px solid var(--lime); box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: 4px solid var(--lime); }
.range:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 12px; }

.plans__label { margin: 22px 0 10px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mist-2); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.plan {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  min-height: 112px; padding: 26px 10px 12px; border-radius: var(--r-md); cursor: pointer;
  background: var(--ink-2); border: 1.5px solid var(--line-dark); color: var(--paper);
  transition: border-color .15s, background-color .15s;
}
.plan[aria-pressed="true"] { border-color: var(--lime); background: rgba(228, 255, 58, .08); }
.plan__tag {
  position: absolute; top: 7px; left: 10px; right: 6px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--lime); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.plan__pay { font-weight: 700; font-size: 14.5px; }
.plan__per { font-size: 11px; color: var(--mist-2); }
.plan__k { margin-top: 8px; font-size: 11px; color: var(--mist-2); }
.plan__payout { font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 80; font-size: 20px; line-height: 1.1; color: var(--lime); }

.only { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-weight: 600; font-size: 15px; }
.only__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); flex: none; }

/* ---------- Forms ---------- */
.note {
  background: rgba(255, 181, 71, .12); border: 1px solid rgba(255, 181, 71, .45); color: var(--paper);
  border-radius: var(--r-md); padding: 10px 14px; font-size: 13.5px; line-height: 1.45; margin-bottom: 18px;
}
.note .linkbtn { color: var(--warn); }
.fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.fld label, .payout legend, .agree legend, .pm legend { font-weight: 600; font-size: 15px; }
.fld input, .fld select {
  min-height: 52px; padding: 12px 14px; border-radius: 14px; font: inherit; font-size: 17px;
  background: var(--ink-2); color: var(--paper); border: 1.5px solid #3A4654; width: 100%;
}
.fld input::placeholder { color: #6F7D8B; }
.fld input:focus, .fld select:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(228, 255, 58, .25); }
.fld input[aria-invalid="true"], .fld select[aria-invalid="true"] { border-color: var(--warn); }
.fld input[type="date"] { color-scheme: dark; }
.fld select { color-scheme: dark; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mist) 50%), linear-gradient(135deg, var(--mist) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.hint { font-size: 13px; color: var(--mist-2); line-height: 1.45; }
.err { font-size: 13.5px; color: var(--warn); line-height: 1.4; }
.err:empty { display: none; }
.err--sum { margin-top: 4px; font-weight: 600; }

/* ---------- Step 3: beneficiary ---------- */
.ben-hero {
  background: radial-gradient(120% 90% at 50% 0%, rgba(228, 255, 58, .16), transparent 65%), var(--ink-3);
  border: 1px solid var(--line-dark); border-radius: var(--r-xl); padding: 22px 18px 6px; margin-bottom: 18px;
}
.ben-hero__icon {
  width: 56px; height: 56px; border-radius: 18px; background: var(--lime); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.payout { border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: 16px 14px 2px; margin: 8px 0 0; min-width: 0; }
.payout legend { padding: 0 6px; margin-left: -6px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 16px; }
.seg__opt { position: relative; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg__opt span {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px; border-radius: 14px;
  border: 1.5px solid #3A4654; font-weight: 600; text-align: center;
}
.seg__opt input:checked + span { border-color: var(--lime); background: rgba(228, 255, 58, .1); color: var(--lime); }
.seg__opt input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }

/* ---------- Step 4: the deal card ---------- */
.deal { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-dark); background: var(--ink-3); }
.deal__pay { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px; flex-wrap: wrap; }
.deal__k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mist-2); }
.deal__v b { font-family: var(--font-display); font-size: 28px; font-weight: 800; font-variation-settings: "wdth" 90; }
.deal__v small { color: var(--mist-2); margin-left: 2px; }
.deal__get { background: var(--lime); color: var(--ink); padding: 20px 18px 22px; display: flex; flex-direction: column; gap: 6px; }
.deal__get .deal__k { color: var(--ink); opacity: .75; }
.deal__big { font-family: var(--font-display); font-weight: 900; font-variation-settings: "wdth" 76; font-size: clamp(40px, 12.4vw, 56px); line-height: 1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.deal__if { font-weight: 600; font-size: 14.5px; }
.deal__rows { margin: 0; padding: 6px 18px; }
.deal__rows div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
.deal__rows dt { color: var(--mist-2); font-size: 13.5px; flex: none; }
.deal__rows dd { margin: 0; text-align: right; font-weight: 600; display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: flex-end; align-items: center; min-width: 0; }
.deal__only { padding: 0 18px; font-weight: 600; font-size: 14px; }
.deal__ins { padding: 8px 18px 18px; font-size: 13px; color: var(--mist); }

/* ---------- Step 5: consent + payment ---------- */
.agree, .pm { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.agree legend, .pm legend { margin-bottom: 10px; padding: 0; }
.disc { border: 1px solid var(--line-dark); border-radius: var(--r-md); background: var(--ink-3); margin-bottom: 8px; }
.disc__check { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; cursor: pointer; position: relative; }
.disc__check input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; left: 14px; }
.disc__box { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--mist-2); flex: none; display: inline-flex; align-items: center; justify-content: center; }
.disc__check input:checked + .disc__box { background: var(--lime); border-color: var(--lime); }
.disc__check input:checked + .disc__box::after { content: ""; width: 10px; height: 6px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: translateY(-2px) rotate(-45deg); }
.disc__check input:focus-visible + .disc__box { outline: 3px solid var(--lime); outline-offset: 2px; }
.disc__t { font-weight: 600; }
.disc__more { padding: 0 14px 10px 50px; }
.disc__more summary { cursor: pointer; color: var(--lime); font-size: 13.5px; min-height: 32px; display: inline-flex; align-items: center; }
.disc__more p { font-size: 13.5px; color: var(--mist); margin-top: 6px; }
.disc__v { font-size: 11px !important; color: var(--mist-2) !important; }
.pm__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pm__opt { position: relative; }
.pm__opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pm__opt span { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px; border-radius: 14px; border: 1.5px solid #3A4654; font-weight: 600; text-align: center; }
.pm__opt input:checked + span { border-color: var(--lime); background: rgba(228, 255, 58, .1); color: var(--lime); }
.pm__opt input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }

/* ---------- Step 6 ---------- */
.step--done { padding-top: 24px; }
.done__ring { width: 120px; height: 120px; margin: 8px auto 0; }
.done__arc { stroke-dasharray: 315; stroke-dashoffset: 315; transform: rotate(-90deg); transform-origin: center; animation: arc 1s var(--ease) forwards; }
.done__tick { stroke-dasharray: 60; stroke-dashoffset: 60; animation: arc .5s .7s var(--ease) forwards; }
@keyframes arc { to { stroke-dashoffset: 0; } }
.done__demo { text-align: center; font-size: 13px; color: var(--warn); }

/* ---------- Home ---------- */
.home { padding-top: 12px; }
.home__brand { font-size: 11.5px; letter-spacing: .16em; color: var(--mist-2); }
.home__title {
  display: flex; align-items: center; gap: 14px; margin: 10px 0 14px; outline: none;
  font-family: var(--font-display); font-weight: 900; font-variation-settings: "wdth" 80; text-transform: uppercase;
  font-size: clamp(32px, 9vw, 44px); line-height: 1; letter-spacing: -.015em;
}
.home__title .status-dot { width: 14px; height: 14px; }
.home__title.is-off .status-dot { background: var(--grey); }
.home__title.is-off .status-dot::after { display: none; }
.home__note { color: var(--lime); font-weight: 600; font-size: 14.5px; }
.home__note:empty { display: none; }
.home__card { margin: 12px 0 20px; border-radius: var(--r-xl); background: var(--lime); color: var(--ink); padding: 22px 20px 8px; }
.home__if { font-weight: 600; font-size: 15px; }
.home__k { margin-top: 14px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.home__big { font-family: var(--font-display); font-weight: 900; font-variation-settings: "wdth" 76; font-size: clamp(34px, 10.8vw, 58px); line-height: 1; letter-spacing: -.02em; margin-top: 4px; white-space: nowrap; }
.home__rows { margin: 18px 0 0; }
.home__rows div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(14, 22, 32, .16); }
.home__rows dt { font-size: 13.5px; opacity: .75; }
.home__rows dd { margin: 0; font-weight: 700; text-align: right; }
.home__rows .lime { color: var(--ink); }
.home__rows .lime::before { content: "● "; color: #2E7D32; }
.home__more { list-style: none; margin-top: 14px; border-top: 1px solid var(--line-dark); }
.home__more li { border-bottom: 1px solid var(--line-dark); }
.home__more button, .home__more a {
  width: 100%; display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 8px 4px;
  background: none; border: 0; color: var(--paper); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-align: left;
}
.home__more i { font-style: normal; font-size: 22px; color: var(--mist-2); }

/* ---------- Sheets ---------- */
.sheet {
  width: min(100% - 24px, 460px); max-height: calc(100vh - 48px); margin: auto auto 12px; padding: 20px 18px 24px;
  border: 1px solid var(--line-dark); border-radius: 24px; background: var(--ink-2); color: var(--paper); overflow: auto;
}
@media (min-width: 600px) { .sheet { margin: auto; } }
.sheet::backdrop { background: rgba(5, 9, 13, .7); }
.sheet__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.sheet__head h2 { font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.sheet__x { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid #3A4654; background: none; color: var(--paper); font-size: 24px; line-height: 1; cursor: pointer; }
.sheet__rows { margin: 0 0 18px; }
.sheet__rows div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
.sheet__rows dt { color: var(--mist-2); font-size: 13.5px; flex: none; }
.sheet__rows dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.sheet__h3 { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--mist-2); margin: 8px 0 8px; }
.sheet__list { list-style: none; margin: 0 0 16px; padding: 0; }
.sheet__list li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line-dark); font-size: 14px; }
.sheet__list .mono { font-size: 11.5px; color: var(--mist-2); overflow-wrap: anywhere; }
.sheet__hash { opacity: .8; }
.sheet__audit summary { cursor: pointer; color: var(--lime); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.sheet__muted { font-size: 13px; color: var(--mist-2); margin-bottom: 8px; }
.sheet__list--audit li { flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.sheet__list--audit li .mono:first-child { color: var(--paper); }
.sheet__warn { font-weight: 600; margin-bottom: 14px; }
.sheet__btns { display: grid; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  .done__arc, .done__tick { animation: none; stroke-dashoffset: 0; }
}
@media (max-width: 360px) {
  .plans { grid-template-columns: 1fr; }
  .plan { min-height: 0; }
}

.fx-note { margin-top: 14px; }
.fx-note a { color: inherit; }
.country-note { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: var(--warn); color: var(--ink); font-size: 14.5px; line-height: 1.5; }
.deal__fx { margin-top: 10px; padding: 0 18px; font-size: 13.5px; line-height: 1.5; color: var(--mist-2); }
