/* PayLink design system.
   Trust is finish: ink on ivory, one indigo accent, hairline borders, a
   single dominant numeral per screen, tabular figures for money, SVG icons
   only, 8pt rhythm. Calm at distance, meticulous up close. */
:root {
  --ink: #101319; --ink-2: #3a4150; --dim: #667084; --faint: #98a1b2;
  --bg: #f7f7f5; --card: #ffffff;
  --line: #e7e8ea; --line-2: #d5d7db;
  --accent: #3d51e0; --accent-ink: #2536ad; --accent-soft: #eef0fd;
  --ok: #0e7a5f; --ok-soft: #e7f5f0; --warn-soft: #faf4e6; --err: #b3362e;
  --r-lg: 20px; --r-md: 12px; --r-sm: 9px;
  --shadow-card: 0 1px 2px rgba(16,19,25,.04), 0 12px 32px -8px rgba(16,19,25,.10);
  --shadow-pop: 0 1px 2px rgba(16,19,25,.06), 0 6px 16px -4px rgba(16,19,25,.14);
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  padding: 0 1.25rem 0;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv05", "cv08";
}
::selection { background: var(--accent-soft); }

/* Wordmark */
header { width: 100%; max-width: 30.5rem; padding: 1.75rem 0 0; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 650;
  font-size: 1.02rem; letter-spacing: -.015em; color: var(--ink); text-decoration: none; }
.logo svg { width: 24px; height: 24px; }

/* Hero */
.hero { width: 100%; max-width: 30.5rem; padding: 2.5rem 0 1.75rem; }
.hero h1 { font-size: clamp(1.9rem, 6vw, 2.35rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; }
.hero p { color: var(--dim); margin-top: .65rem; font-size: 1rem; line-height: 1.6; max-width: 25rem; }

/* Card */
.card {
  width: 100%; max-width: 30.5rem; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 2rem 1.75rem; box-shadow: var(--shadow-card);
  animation: settle .5s cubic-bezier(.2,.7,.25,1) both;
}
@keyframes settle { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .card { animation: none; } }

/* Forms */
label { display: block; font-size: .8rem; font-weight: 560; color: var(--ink-2);
  margin: 1.25rem 0 .4rem; letter-spacing: .002em; }
label .opt { font-weight: 400; color: var(--faint); }
input {
  width: 100%; padding: .72rem .85rem; font-size: 1rem; font-family: inherit; color: var(--ink);
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-md);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: var(--faint); }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61,81,224,.14); }

/* The focal numeral — the portrait on the banknote */
.amount-row { display: flex; align-items: baseline; justify-content: center; gap: .18rem; padding: .6rem 0 .1rem; }
.amount-row .cur { font-size: 1.9rem; font-weight: 560; color: var(--faint); }
#amount {
  width: auto; min-width: 2.2ch; max-width: 100%; border: 0; box-shadow: none; padding: 0;
  font-size: 3.4rem; font-weight: 680; letter-spacing: -.035em;
  font-variant-numeric: tabular-nums; background: transparent; caret-color: var(--accent);
}
.big-amount { font-size: 2.9rem; font-weight: 680; letter-spacing: -.035em;
  font-variant-numeric: tabular-nums; }
.split { color: var(--dim); font-size: .86rem; text-align: center; min-height: 1.3rem;
  font-variant-numeric: tabular-nums; }

/* Buttons */
button.primary {
  width: 100%; margin-top: 1.5rem; padding: .9rem; font: inherit; font-size: 1rem; font-weight: 600;
  color: #fff; background: var(--ink); border: 0; border-radius: var(--r-md); cursor: pointer;
  letter-spacing: .002em; transition: background .15s, transform .12s, box-shadow .15s;
}
button.primary:hover { background: #1c2129; transform: translateY(-1px); box-shadow: var(--shadow-pop); }
button.primary:active { transform: none; box-shadow: none; }
button.primary:disabled { opacity: .45; cursor: wait; transform: none; box-shadow: none; }

.error { color: var(--err); font-size: .88rem; margin-top: .8rem; min-height: 1.2rem; text-align: center; }
.hidden { display: none !important; }

/* Status headers */
.status { text-align: center; padding: .35rem 0 .5rem; }
.status .badge { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center; background: var(--accent-soft); }
.status .badge svg { width: 22px; height: 22px; stroke: var(--accent); }
.status .badge.ok { background: var(--ok-soft); } .status .badge.ok svg { stroke: var(--ok); }
.status .badge.warn { background: var(--warn-soft); } .status .badge.warn svg { stroke: #8a6d1d; }
.status h2 { font-size: 1.4rem; letter-spacing: -.025em; font-weight: 680; }
.status .sub { color: var(--dim); margin-top: .45rem; font-size: .95rem; }
.note-quote { color: var(--dim); font-style: italic; }

/* Share steps + tiles */
.step { display: flex; gap: .7rem; align-items: baseline; margin-top: 1.6rem; }
.step .n { flex: none; width: 21px; height: 21px; border-radius: 50%; background: var(--ink); color: #fff;
  font-size: .72rem; font-weight: 650; display: flex; align-items: center; justify-content: center;
  transform: translateY(3px); font-variant-numeric: tabular-nums; }
.step .t { font-weight: 620; font-size: .95rem; letter-spacing: -.01em; }
.step .d { color: var(--dim); font-size: .85rem; margin-top: .15rem; line-height: 1.5; }
.tile { display: flex; gap: .6rem; align-items: center; margin-top: .65rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: .7rem .8rem; }
.tile code { flex: 1; font: .85rem/1.45 ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--ink); overflow-wrap: anywhere; }
.tile.code-tile { background: var(--warn-soft); border-color: #ecdfc0; }
.tile.code-tile code { font-size: 1.65rem; font-weight: 650; letter-spacing: .32em; text-align: center; }
.copy { flex: none; font: inherit; font-size: .8rem; font-weight: 600; color: var(--ink);
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: .4rem .75rem; cursor: pointer; transition: border-color .12s, color .12s; }
.copy:hover { border-color: var(--ink); }
.copy.done { color: var(--ok); border-color: var(--ok); }
.hint { color: var(--dim); font-size: .82rem; margin-top: .55rem; line-height: 1.55; }
.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 620;
  color: #8a6d1d; background: var(--warn-soft); border: 1px solid #ecdfc0;
  border-radius: 999px; padding: .28rem .7rem; margin-bottom: .9rem; }
/* Channel picker — radio cards */
.channels { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.chan {
  font: inherit; font-size: .95rem; font-weight: 600; color: var(--ink);
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-md);
  padding: .8rem; cursor: pointer; transition: border-color .12s, box-shadow .12s, background .12s;
}
.chan:hover { border-color: var(--ink); }
.chan.sel { border-color: var(--accent); background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(61,81,224,.12); color: var(--accent-ink); }

details { margin-top: 1.6rem; border-top: 1px solid var(--line); padding-top: 1rem; }
summary { color: var(--dim); font-size: .85rem; cursor: pointer; }

/* How it works — three quiet columns under the card */
.how { width: 100%; max-width: 30.5rem; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; padding: 2.25rem 0 0; }
.how .h-t { font-size: .86rem; font-weight: 620; letter-spacing: -.01em; display: flex; gap: .45rem; align-items: center; }
.how .h-t svg { width: 15px; height: 15px; stroke: var(--accent); flex: none; }
.how .h-d { color: var(--dim); font-size: .8rem; margin-top: .35rem; line-height: 1.55; }
@media (max-width: 480px) { .how { grid-template-columns: 1fr; gap: 1rem; } }

/* Trust bar */
.trust { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap;
  margin: 2.25rem 0 0; color: var(--faint); font-size: .8rem; }
.trust span { display: inline-flex; align-items: center; gap: .4rem; }
.trust svg { width: 13px; height: 13px; stroke: currentColor; flex: none; }

/* Footer — the stone foundation */
footer {
  width: 100vw; margin-top: 3rem; padding: 2rem 1.25rem 2.5rem;
  background: var(--ink); color: #8b93a3; font-size: .8rem; text-align: center; line-height: 1.7;
}
footer b { color: #cfd4dd; font-weight: 600; }
footer a { color: #8b93a3; }
footer a:hover { color: #cfd4dd; }
footer .legal { margin-top: .5rem; }

svg.icon { fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 480px) {
  .card { padding: 1.6rem 1.25rem; }
  #amount { font-size: 2.9rem; }
}
