/* Layout concept: one phone-width column on wine satin; the bank details sit on a
   cream "stationery" card (the speech site's polaroid paper), everything else is
   outline cards and round buttons on the dark ground. Mobile only. */

/* ───────── Fonts ───────── */
@font-face {
  font-family: "Perfectly Nineties";
  src: url("fonts/PerfectlyNineties-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face { font-family: "Neue Rain"; src: url("fonts/NeueRain-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Neue Rain"; src: url("fonts/NeueRain-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* ───────── Tokens (shared with speech.pentoine.com) ───────── */
:root {
  --bg: #1f0405;
  --wine: #3a0d10;
  --rose: #7c2d33;
  --rose-soft: #a65a5c;
  --line: rgba(196, 128, 120, .45);
  --cream: #f4ece2;
  --cream-dim: rgba(244, 236, 226, 0.66);
  --cream-faint: rgba(244, 236, 226, 0.16);
  --paper: #f3efe5;
  --ink: #1e0607;
  --ink-dim: rgba(30, 6, 7, .58);
  --ink-line: rgba(30, 6, 7, .13);

  --f-head: "Perfectly Nineties", Georgia, serif;
  --f-body: "Neue Rain", -apple-system, "Helvetica Neue", sans-serif;

  --gutter: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--f-body);
  font-weight: 300;
  line-height: 1.5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 1.5px solid var(--cream); outline-offset: 4px; border-radius: 4px; }

.sheen {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    linear-gradient(to bottom, rgba(31,4,5,1) 0%, rgba(31,4,5,.9) 35%, rgba(31,4,5,.25) 100%),
    url("images/silk.webp") 70% 100% / cover no-repeat,
    var(--bg);
}

.app {
  position: relative; z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100svh;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.view { animation: rise .7s var(--ease) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ───────── Shared ───────── */
.display { font-family: var(--f-head); font-weight: 400; line-height: 1; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.logo { display: block; height: 32px; width: auto; }

.home-head { display: flex; align-items: center; justify-content: center; height: 48px; box-sizing: content-box; padding: max(20px, env(safe-area-inset-top)) 0 12px; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  margin: 0 calc(var(--gutter) * -1);
  padding: max(20px, env(safe-area-inset-top)) var(--gutter) 12px;
  display: grid; grid-template-columns: 48px 1fr 48px; align-items: center;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.topbar .logo { justify-self: center; }
.topbar.scrolled {
  background: rgba(26, 4, 5, .84);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--cream-faint);
}
.round-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(244, 236, 226, .08);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px -6px rgba(0,0,0,.6);
  transition: background .3s;
}
.round-btn:active { background: rgba(244, 236, 226, .18); }
.round-btn svg { width: 20px; height: 20px; }

.divider { display: flex; justify-content: center; }
.divider img { width: 176px; height: auto; opacity: .9; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400;
  transition: background .3s;
}
.btn:active { background: rgba(124, 45, 51, .35); }

/* ───────── Home ───────── */
.home-hero { padding: 30px 0 36px; text-align: center; }
.eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: var(--rose-soft); }
.home-hero .display { font-size: clamp(42px, 13vw, 56px); line-height: 1.02; }
.lede { margin: 18px auto 0; max-width: 21em; font-size: 17px; line-height: 1.5; font-weight: 400; color: rgba(244, 236, 226, .8); text-wrap: pretty; }

.choose {
  margin: 34px 0 16px; text-align: center;
  font-family: var(--f-body); font-weight: 400; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--cream-dim);
}

.pay-list { list-style: none; margin: 0 0 44px; padding: 0; display: grid; gap: 14px; }
.pay-card {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 16px;
  min-height: 100px; padding: 0 24px 0 20px;
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 14px 28px -14px rgba(0,0,0,.85);
  transition: background .3s, transform .2s var(--ease);
}
.pay-card:active { transform: scale(.985); background: #e4dccd; }
.pay-card .sym {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(124, 45, 51, .4);
  font-family: var(--f-head); font-size: 26px; line-height: 1; color: var(--rose);
}
.pay-card .txt { display: grid; gap: 6px; min-width: 0; }
.pay-card .name { font-family: var(--f-head); font-size: 30px; line-height: 1; }
.pay-card .sub { font-size: 13px; font-weight: 400; letter-spacing: .04em; color: var(--ink-dim); }
.pay-card svg { width: 26px; height: 26px; }

.thanks {
  margin: 0; padding: 20px 0 calc(48px + var(--safe-b)); text-align: center;
  font-family: var(--f-head); font-size: 19px; color: var(--cream-dim);
}

/* ───────── Account ───────── */
.acc-hero { text-align: center; padding: 26px 0 28px; }
.seal {
  display: grid; place-items: center; margin: 0 auto 16px;
  width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid var(--line);
  font-family: var(--f-head); font-size: 28px; line-height: 1;
  background: rgba(244, 236, 226, .05);
}
.acc-hero .display { font-size: clamp(44px, 13vw, 56px); line-height: 1.02; }
.instruction {
  margin: 14px auto 0; max-width: 17em;
  font-size: 17px; line-height: 1.4; font-weight: 400; color: rgba(244, 236, 226, .85); text-wrap: balance;
}

/* the cream stationery card */
.details {
  background: var(--paper);
  color: var(--ink);
  border-radius: 20px;
  padding: 22px 22px 6px;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 22px 36px -14px rgba(0,0,0,.7), 0 4px 10px rgba(0,0,0,.35);
}
.account-view .details { margin-bottom: 44px; }
.bank { display: flex; justify-content: center; padding: 2px 0 18px; border-bottom: 1px solid var(--ink-line); }
.bank img { height: 30px; width: auto; }
.bank-any span { font-family: var(--f-head); font-size: 21px; line-height: 30px; }

.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  padding: 16px 0;
}
.row + .row { border-top: 1px solid var(--ink-line); }
.row-txt { display: grid; gap: 5px; min-width: 0; }
.label { font-size: 11px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-dim); }
.value {
  font-family: var(--f-head); font-size: 24px; line-height: 1.1; overflow-wrap: anywhere;
  -webkit-user-select: all; user-select: all;
}
.value.mono {
  font-family: var(--f-body); font-weight: 400; font-size: 20px; letter-spacing: .06em;
  font-variant-numeric: tabular-nums lining-nums;
}

.copy-btn {
  position: relative;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(124, 45, 51, .45);
  color: var(--rose);
  background: rgba(124, 45, 51, .05);
  transition: background .25s, color .25s, border-color .25s, transform .15s var(--ease);
}
.copy-btn:active { transform: scale(.92); background: rgba(124, 45, 51, .14); }
.copy-btn svg { width: 21px; height: 21px; grid-area: 1 / 1; transition: opacity .2s, transform .3s var(--ease); }
.copy-btn .i-check { opacity: 0; transform: scale(.6); }
.copy-btn.copied { background: var(--rose); border-color: var(--rose); color: var(--cream); }
.copy-btn.copied .i-copy { opacity: 0; transform: scale(.6); }
.copy-btn.copied .i-check { opacity: 1; transform: none; }
.copy-btn:focus-visible { outline-color: var(--rose); }

.steps { list-style: none; margin: 34px 0 44px; padding: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: baseline; font-size: 16px; font-weight: 400; color: rgba(244, 236, 226, .85); }
.steps p { margin: 0; }
.steps span { font-family: var(--f-head); font-size: 20px; color: var(--rose-soft); text-align: center; }
.steps em { font-style: normal; color: var(--cream); border-bottom: 1px solid var(--line); }
.note { margin: 20px 0 40px; font-size: 14px; color: var(--cream-dim); text-align: center; }

.acc-end { text-align: center; padding: 64px 0 calc(110px + var(--safe-b)); }

/* ───────── Snackbar ───────── */
.snackbar {
  position: fixed; z-index: 30;
  left: 50%; bottom: calc(20px + var(--safe-b));
  transform: translate(-50%, 160%);
  opacity: 0;
  display: inline-flex; align-items: center; gap: 10px;
  max-width: calc(100% - 32px);
  padding: 13px 22px 13px 16px;
  border-radius: 999px;
  background: var(--cream); color: var(--ink);
  font-size: 15px; font-weight: 400; letter-spacing: .01em; white-space: nowrap;
  box-shadow: 0 16px 40px -10px rgba(0,0,0,.7);
  pointer-events: none;
  transition: transform .45s var(--ease), opacity .3s var(--ease);
}
.snackbar svg { width: 20px; height: 20px; flex: none; color: var(--rose); }
.snackbar.show { transform: translate(-50%, 0); opacity: 1; }

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