/* ============================================================
   GENIES PAY — "In the hand"
   The stylesheet for the app half of the site: the phone, the
   onboarding walk, balances, the conversion quote, the card
   control panel and the crypto flows.

   The counter half is instruments on a dark bench. This half is
   a device in somebody's hand — so it is softer, rounder and
   lighter-weight, and it leans on the brand gradient where the
   counter pages stay flat.
   ============================================================ */

/* ---------- Masthead variant ---------- */
.masthead--hand {
  background:
    radial-gradient(820px 460px at 82% -10%, rgba(255, 46, 136, .13), transparent 66%),
    radial-gradient(620px 420px at 8% 10%, rgba(255, 107, 53, .10), transparent 70%);
}
.masthead--hand h1 { max-width: 16ch; }

/* ---------- The phone ---------- */
.ph { display: flex; justify-content: center; }
.ph__body {
  position: relative;
  width: min(300px, 100%);
  aspect-ratio: 300 / 604;
  border-radius: 40px;
  padding: 11px;
  background: linear-gradient(160deg, #3A2A24, #1A1210 60%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 34px 60px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(255, 238, 230, .10);
}
.ph__notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 20px; border-radius: 999px; background: #0D0705; z-index: 2;
}
.ph__screen {
  position: relative; height: 100%; border-radius: 30px; overflow: hidden;
  background: var(--bg); padding: 42px 16px 22px;
}
.ph__bar {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  width: 104px; height: 4px; border-radius: 999px; background: rgba(255, 238, 230, .28);
}

/* ---------- Screens ---------- */
.scr { display: flex; flex-direction: column; gap: 10px; height: 100%; font-size: 13px; }
.scr__top { display: grid; gap: 1px; margin-bottom: 4px; }
.scr__top span { font-size: 11px; color: var(--ink-faint); }
.scr__top b { font-family: var(--font-display); font-size: 17px; }
.scr__bal {
  display: grid; gap: 3px; padding: 15px 16px; border-radius: 18px;
  background: var(--grad); color: var(--on-brand);
}
.scr__bal span { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .78; }
.scr__bal b { font-family: var(--font-display); font-size: 21px; }
.scr__row {
  display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 13px; background: var(--panel-2);
}
.scr__row b { display: block; font-size: 12.5px; font-weight: 600; }
.scr__row i { font-style: normal; font-size: 10.5px; color: var(--ink-faint); }
.scr__row u { text-decoration: none; font-family: var(--font-mono); font-size: 12px; }
.scr__row u.in { color: var(--ok); }
.dot { width: 8px; height: 8px; border-radius: 3px; background: var(--ink-faint); }
.dot--ok { background: var(--surge); }
.dot--in { background: var(--ok); }
.scr__acts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px;
}
.scr__acts span {
  text-align: center; padding: 9px 2px; border-radius: 12px;
  background: var(--panel-3); font-size: 10.5px; color: var(--ink-dim);
}

/* the onboarding screen, written by hand.js */
.scr--walk { gap: 12px; }
.scr--walk .w__t, .scr--walk .w__p, .scr--walk .w__box,
.scr--walk .w__pin, .scr--walk .w__card { flex: 0 0 auto; }
.scr--walk .w__t { font-family: var(--font-display); font-size: 17px; line-height: 1.25; }
.scr--walk .w__p { font-size: 12px; color: var(--ink-dim); line-height: 1.6; }
.scr--walk .w__f {
  margin-top: auto; padding: 12px; border-radius: 15px; text-align: center;
  background: var(--grad); color: var(--on-brand); font-size: 12.5px; font-weight: 600;
}
.scr--walk .w__box {
  padding: 13px; border-radius: 15px; background: var(--panel-2);
  border: 1px solid var(--line); font-family: var(--font-mono); font-size: 11.5px;
  color: var(--ink-dim); line-height: 1.7;
}
.scr--walk .w__pin { display: flex; gap: 7px; }
.scr--walk .w__pin i {
  flex: 1; height: 38px; border-radius: 11px; background: var(--panel-3);
  display: grid; place-items: center; font-style: normal;
  font-family: var(--font-mono); font-size: 15px; color: var(--surge);
}
.scr--walk .w__card {
  aspect-ratio: 1.585; border-radius: 15px; padding: 13px;
  background: var(--grad); color: var(--on-brand);
  display: flex; flex-direction: column; justify-content: space-between;
}
.scr--walk .w__card b { font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; }
.scr--walk .w__card span { font-size: 10.5px; opacity: .8; }

/* ---------- The walk ---------- */
.walk { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.walk__i {
  display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start;
  padding: 13px 14px; border-radius: 18px; cursor: pointer;
  border: 1px solid transparent; transition: background var(--dur-1), border-color var(--dur-1);
}
.walk__i:hover { background: var(--panel-2); }
.walk__i.is-on { background: var(--panel-2); border-color: var(--line-strong); }
.walk__n {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px;
  background: var(--panel-3); font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-faint); transition: background var(--dur-1), color var(--dur-1);
}
.walk__i.is-on .walk__n { background: var(--surge); color: var(--on-brand); }
.walk__i strong { display: block; font-size: 15px; }
.walk__i p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-dim); line-height: 1.6; }

/* ---------- Balances ---------- */
.bals { display: grid; gap: 8px; margin-top: 18px; }
.bal {
  display: grid; grid-template-columns: 62px 1fr auto; align-items: baseline; gap: 14px;
  padding: 14px 16px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--line);
}
.bal.is-on { border-color: var(--surge); background: var(--surge-soft); }
.bal__c { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.bal.is-on .bal__c { color: var(--surge); }
.bal b { font-family: var(--font-display); font-size: 19px; }
.bal i { font-style: normal; font-size: 11.5px; color: var(--ink-faint); }
.bal--x { border-style: dashed; }

/* ---------- The quote ---------- */
.quote {
  display: grid; gap: 12px; padding: 22px; border-radius: 22px;
  background: var(--panel); border: 1px solid var(--line-strong);
}
.quote__row, .quote__rate {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  font-size: 14px; color: var(--ink-dim);
}
.quote__row b, .quote__rate b { font-family: var(--font-mono); font-size: 14.5px; color: var(--ink); }
.quote__rate { padding: 11px 14px; border-radius: 13px; background: var(--panel-2); }
.quote__row--out { padding-top: 12px; border-top: 1px solid var(--line); }
.quote__row--out b { font-family: var(--font-display); font-size: 21px; color: var(--surge); }
.quote__clock { display: flex; align-items: center; gap: 14px; }
.quote__clock p { margin: 0; font-size: 12.5px; color: var(--ink-faint); }
.quote__clock b { font-family: var(--font-mono); color: var(--ink-dim); }
.quote__dial { width: 44px; height: 44px; flex: 0 0 auto; transform: rotate(-90deg); }
.quote__track { fill: none; stroke: var(--panel-3); stroke-width: 4; }
.quote__arc {
  fill: none; stroke: var(--surge); stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 113.1; stroke-dashoffset: 0;
}
.quote__state {
  padding: 9px 14px; border-radius: 999px; text-align: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; background: var(--ok-soft); color: var(--ok);
}
.quote.is-stale .quote__state { background: var(--warn-soft); color: var(--warn); }
.quote.is-stale .quote__arc { stroke: var(--warn); }

/* ---------- Card controls ---------- */
.ctl { display: grid; gap: 8px; }
.ctl__sw {
  /* position: relative matters — the checkbox inside is visually hidden
     with position: absolute, and without a positioned ancestor all five
     would stack at the same point on the page instead of sitting inside
     their own labels. */
  position: relative;
  display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center;
  padding: 13px 16px; border-radius: 16px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line);
}
.ctl__sw input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ctl__sw > span {
  grid-row: span 2; width: 46px; height: 27px; border-radius: 999px;
  background: var(--panel-3); position: relative; transition: background var(--dur-1);
}
.ctl__sw > span::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px;
  border-radius: 50%; background: var(--ink-faint); transition: transform var(--dur-2), background var(--dur-1);
}
.ctl__sw input:checked ~ span { background: var(--surge-soft); }
.ctl__sw input:checked ~ span::after { transform: translateX(19px); background: var(--surge); }
.ctl__sw input:focus-visible ~ span { outline: 2px solid var(--surge); outline-offset: 3px; }
.ctl__sw b { font-size: 14.5px; }
.ctl__sw i { grid-column: 2; font-style: normal; font-size: 12.5px; color: var(--ink-faint); }
.ctl__cap {
  display: grid; gap: 10px; padding: 16px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--line);
}
.ctl__cap b { font-size: 14.5px; }
.ctl__cap span { font-family: var(--font-mono); font-size: 13px; color: var(--surge); }
.ctl__cap input[type="range"] { width: 100%; accent-color: var(--surge); }

.try {
  display: grid; gap: 14px; padding: 22px; border-radius: 22px;
  background: var(--panel); border: 1px solid var(--line-strong);
}
.try__h { margin: 0; font-family: var(--font-display); font-size: 17px; }
.try__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.try__btns .btn { font-size: 13px; padding: 9px 14px; }
.try__out {
  display: grid; gap: 8px; padding: 18px; border-radius: 16px; min-height: 104px;
  background: var(--panel-2); border: 1px solid var(--line);
}
.try__out p { margin: 0; font-size: 13.5px; color: var(--ink-dim); line-height: 1.6; }
.try__code {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em;
  color: var(--ink-faint);
}
.try__out.ok  { border-color: var(--ok);   background: var(--ok-soft); }
.try__out.ok  .try__code { color: var(--ok); }
.try__out.no  { border-color: var(--stop); background: var(--stop-soft); }
.try__out.no  .try__code { color: var(--stop); }
.try .form__note { margin: 0; }

/* ---------- Crypto flow & legs ---------- */
.flow { display: grid; gap: 10px; }
.flow__s {
  position: relative; padding: 16px 18px 16px 24px; border-radius: 18px;
  background: var(--panel); border: 1px solid var(--line);
}
.flow__s::before {
  content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px;
  border-radius: 999px; background: var(--grad);
}
.flow__s b { display: block; font-size: 15px; }
.flow__s p { margin: 5px 0 0; font-size: 13.5px; color: var(--ink-dim); line-height: 1.65; }

.legs { display: grid; gap: 0; }
.legs__l { display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 16px 0; }
.legs__l + .legs__l { border-top: 1px solid var(--line); }
.legs__l span {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 11px;
  background: var(--panel-2); border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 12px; color: var(--surge);
}
.legs__l b { display: block; font-size: 15px; }
.legs__l p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-dim); line-height: 1.65; }

/* ---------- The licence note ---------- */
.lic {
  margin-top: 26px; padding: 18px 22px; border-radius: 18px;
  background: var(--warn-soft); border: 1px solid var(--warn);
  font-size: 14px; line-height: 1.7; color: var(--ink-dim); max-width: 72ch;
}
.lic b { color: var(--warn); }

/* ---------- Layout ---------- */
@media (max-width: 900px) {
  .ph__body { width: min(280px, 100%); }
  .walk__i { grid-template-columns: 38px 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .quote__arc, .ctl__sw > span::after, .walk__n { transition: none; }
}
