/* Wallet prototype page: intro, then the live prototype in a frame that shares the intro's
   side gutters. On desktop the frame is tall enough for the full simulated phone; on phones
   it takes the screen height under the header and the app fills it edge to edge. */
:root { --wallet-gutter: clamp(16px, 4vw, 24px); }
@media (min-width: 1024px) { :root { --wallet-gutter: clamp(24px, 2.2vw, 32px); } }
.wallet-page { display: block; padding-top: calc(var(--wallet-top, 66px) + var(--wallet-gutter)); }
.wallet-live { padding: 0 var(--wallet-gutter) clamp(96px, 10vw, 160px); scroll-margin-top: calc(var(--wallet-top, 66px) + var(--wallet-gutter)); }
.wallet-frame { position: relative; width: 100%; height: calc(100svh - var(--wallet-top, 66px) - 2 * var(--wallet-gutter)); min-height: 560px;
  border-radius: 16px; overflow: hidden; isolation: isolate; }
@media (min-width: 1024px) {
  .wallet-frame { height: min(940px, calc(100svh - var(--wallet-top, 66px) - 2 * var(--wallet-gutter))); min-height: 720px; border-radius: 18px; }
}
.wallet-frame iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; background: transparent; }

.wallet-page .wallet-article { max-width: none; margin: 0; padding-left: var(--wallet-gutter); padding-right: var(--wallet-gutter); }
.wallet-page .wallet-intro { padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(48px, 5vw, 72px); }
.wallet-body { margin-top: clamp(40px, 5vw, 72px); max-width: 72ch; }
.wallet-body p { margin: 0; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.7; text-wrap: pretty; }
.wallet-page .wallet-open { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: clamp(32px, 3.5vw, 48px); padding: 0 24px; font-size: clamp(16px, 1.2vw, 18px); font-weight: 500; text-decoration: none; }
:root.dark .wallet-page .wallet-open { background: #3d7bf7; color: #fff; }
:root.dark .wallet-page .wallet-open:hover { background: #316ce8; color: #fff; }
.wallet-open svg { flex: none; transition: transform 200ms ease; }
.wallet-open:hover svg { transform: translate(2px, -2px); }
.wallet-page .wallet-intro .article-head, .wallet-page .wallet-intro h1 { max-width: none; }
.wallet-head h1 { font-size: clamp(48px, 5.6vw, 88px); font-weight: 500; line-height: 1; letter-spacing: -.05em; }
.wallet-subtitle { margin: clamp(16px, 1.8vw, 28px) 0 0; font-size: clamp(26px, 2.7vw, 42px); font-weight: 400; line-height: 1.15; letter-spacing: -.035em; color: var(--muted-text); text-wrap: balance; }
@media (prefers-reduced-motion: reduce) { .wallet-open svg { transition: none; } }
