/* Pavilion Wallet landing page. Shares the masthead, sections, FAQ, night band and footer with
   Pavilion Bridge v2 (site.css); this file holds the hero around the wallet popup and the wallet
   sections. Radius family: 24 cards, 16 fields, pills for chips. */
:root { --error-ink: #9a3b2a; --error-soft: #f0a898; }

.desktop-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 7px; }
.nav-cta { gap: 20px; }

/* HERO ---------------------------------------------------------------------- */
.hero { height: 900px; min-height: 0; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; image-rendering: pixelated; }
.hero-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; padding-top: 120px; }
.hero-copy { padding: 48px 0 0; }
.hero h1 { max-width: 760px; font-size: clamp(60px, 5.56vw, 80px); line-height: 1.04; letter-spacing: -.055em; font-weight: 500; }
.hero-description { max-width: 520px; margin-top: 24px; font-size: 20px; line-height: 30px; font-weight: 500; }
.hero-text-link { display: inline-flex; gap: 24px; align-items: center; min-height: 44px; margin-top: 24px; font-size: 14px; line-height: 20px; font-weight: 600; }
.hero-text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero-wallet { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 16px; }
.wallet-host { width: 360px; max-width: 100%; height: 600px; border-radius: 24px; background: var(--ink); }
.wallet-host.wx { background: var(--ink); }
.wallet-noscript { padding: 32px 24px; color: var(--paper); font-size: 14px; line-height: 20px; }
.wallet-note { padding: 6px 12px; border-radius: 9999px; background: rgba(244, 242, 236, .86); color: var(--muted); font-size: 12px; line-height: 16px; font-weight: 600; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

@media (min-width: 1600px) {
  .hero { height: min(56.25vw, 1080px); }
  .hero-layout { padding-top: 160px; }
}
@media (min-width: 1001px) and (max-width: 1150px) {
  .hero-layout { gap: 40px; }
  .hero h1 { font-size: 60px; }
  .hero-description { font-size: 18px; line-height: 28px; }
}
@media (max-width: 1000px) {
  .hero { display: flex; flex-direction: column; height: auto; }
  .hero-layout { z-index: 1; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; padding-top: 120px; }
  .hero-copy { padding-top: 24px; }
  .hero h1 { font-size: 52px; }
  .hero-description { font-size: 16px; line-height: 24px; }
  .hero-art { order: 1; position: relative; inset: auto; z-index: 0; height: 320px; margin-top: -80px; }
  .hero-art img { object-position: 22% bottom; -webkit-mask-image: linear-gradient(transparent 0, #000 30%); mask-image: linear-gradient(transparent 0, #000 30%); }
}
@media (max-width: 760px) {
  .hero-layout { display: block; padding-top: 112px; }
  .hero-copy { padding: 0; }
  .hero h1 { max-width: 520px; font-size: 48px; }
  .hero-description { margin-top: 20px; }
  .hero-text-link { margin-top: 16px; }
  .hero-wallet { margin-top: 32px; }
  .hero-art { height: auto; aspect-ratio: 800 / 539; margin-top: -24px; }
  .hero-art img { object-position: left bottom; -webkit-mask-image: linear-gradient(transparent 0, #000 22%); mask-image: linear-gradient(transparent 0, #000 22%); }
}
@media (max-width: 420px) {
  .wallet-host.wx, .wallet-host { width: 100%; height: 580px; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 42px; }
  .hero-layout { width: calc(100% - 32px); }
}

/* ADDRESSES: the wallet's address check, opened up ------------------------- */
.address-section { background: var(--paper-soft); }
.checker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }
.checker-input label { display: block; margin-bottom: 12px; font-size: 14px; line-height: 20px; font-weight: 600; }
.checker-input textarea { display: block; width: 100%; padding: 16px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); font: 400 16px/26px var(--font-mono); letter-spacing: 0; word-break: break-all; resize: none; transition: border-color 300ms var(--ease); }
.checker-input textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(141, 177, 193, .35); }
.checker-input textarea[aria-invalid="true"] { border-color: var(--error-ink); }
.checker-input textarea:disabled { opacity: 1; }
.checker-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.checker-examples > span { margin-right: 4px; color: var(--muted); font-size: 14px; line-height: 20px; font-weight: 600; }
.checker-examples button { min-height: 40px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 9999px; background: var(--paper); color: var(--ink); font-size: 14px; line-height: 20px; font-weight: 600; transition: background-color 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease); }
.checker-examples button:hover:not(:disabled):not([aria-pressed="true"]) { border-color: var(--ink); }
.checker-examples button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.checker-examples button:disabled { cursor: default; }
.checker-result { min-height: 344px; padding-top: 4px; }
.checker-verdict { display: flex; align-items: center; gap: 12px; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.02em; }
.checker-verdict svg { width: 28px; height: 28px; flex: none; padding: 4px; border-radius: 50%; background: var(--ink); color: var(--paper); }
.checker-verdict.is-error svg, .checker-verdict.is-warn svg { background: transparent; color: var(--error-ink); padding: 0; }
.checker-verdict.is-warn svg { color: var(--ink); }
.checker-verdict.is-idle svg { background: transparent; color: var(--muted); padding: 0; }
.checker-detail { max-width: 560px; margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 24px; }
.checker-address { margin-top: 24px; font: 400 16px/28px var(--font-mono); letter-spacing: 0; word-break: break-all; }
.checker-address .seg { padding: 2px 1px; border-radius: 4px; }
.seg.is-net, .checker-parts .is-net code { background: rgba(141, 177, 193, .4); }
.seg.is-sep { color: var(--muted); }
.seg.is-type, .checker-parts .is-type code { background: var(--ink); color: var(--paper); }
.seg.is-key { padding-inline: 0; }
.checker-parts .is-key code { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.seg.is-sum, .checker-parts .is-sum code { background: transparent; box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }
.checker-address.is-error mark { padding: 1px 3px; border-radius: 4px; background: var(--error-soft); color: var(--ink); font-weight: 600; }
.checker-parts { display: grid; margin-top: 24px; border-top: 1px solid var(--line); }
.checker-parts > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; align-items: baseline; padding-block: 12px; border-bottom: 1px solid var(--line); }
.checker-parts dt code { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 14px; line-height: 20px; }
.checker-parts dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 22px; }
.checker-parts dd b { display: block; color: var(--ink); font-size: 16px; line-height: 24px; font-weight: 600; }
.checker-aside { max-width: 560px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 22px; }
.checker-aside a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) {
  .checker { display: block; }
  .checker-result { min-height: 0; margin-top: 32px; }
  .checker-verdict { font-size: 20px; line-height: 28px; }
  .checker-address { font-size: 14px; line-height: 24px; }
  .checker-input textarea { min-height: 106px; padding: 16px; font-size: 14px; line-height: 24px; }
  .checker-parts > div { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
}

/* PEARL AND ETHEREUM: one account, two addresses --------------------------- */
.chains-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 80px; align-items: center; }
.chains-copy > p { max-width: 560px; margin-top: 24px; color: var(--muted); font-size: 18px; line-height: 28px; }
.chains-copy > p + p { margin-top: 16px; }
.chains-figure { display: grid; gap: 16px; margin: 0; }
.acct-card { padding: 8px 24px; border-radius: 24px; background: var(--ink); color: var(--paper); box-shadow: 0 32px 64px -40px rgba(27, 43, 65, .6); }
.acct-card-head { display: flex; align-items: center; gap: 12px; padding-block: 16px; border-bottom: 1px solid rgba(244, 242, 236, .1); font-size: 16px; line-height: 24px; }
.acct-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); color: var(--ink); }
.acct-avatar svg { width: 17px; height: 17px; fill: currentColor; }
.acct-tag { margin-left: auto; padding: 4px 12px; border: 1px solid rgba(244, 242, 236, .2); border-radius: 9999px; color: #aab7c4; font-size: 12px; line-height: 16px; font-weight: 600; }
.acct-line { display: flex; align-items: center; gap: 16px; padding-block: 16px; border-bottom: 1px solid rgba(244, 242, 236, .1); }
.acct-line:last-child { border-bottom: 0; }
.chain-logo { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); }
.chain-logo svg { fill: currentColor; }
.chain-logo.is-pearl { background: #cfe0e7; }
.chain-logo.is-pearl svg { width: 26px; height: auto; transform: translateY(1px); }
.chain-logo.is-eth { background: var(--paper); }
.chain-logo.is-eth svg { width: 24px; height: 24px; }
.acct-line-main { display: grid; min-width: 0; }
.acct-line-main b { font-size: 16px; line-height: 24px; font-weight: 600; }
.acct-line-main code { color: #aab7c4; font-size: 13px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-line-end { margin-left: auto; color: #aab7c4; font-size: 14px; line-height: 20px; font-weight: 600; text-align: right; white-space: nowrap; }
.acct-line-end b { display: block; color: var(--paper); font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.cross-card { padding: 20px 24px 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); }
.cross-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14px; line-height: 20px; }
.cross-card-head b { font-size: 16px; line-height: 24px; font-weight: 600; }
.cross-card-head > span:not(.cross-pill) { color: var(--muted); font-variant-numeric: tabular-nums; }
.cross-pill { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 4px 12px; border-radius: 9999px; background: rgba(141, 177, 193, .28); font-size: 12px; line-height: 16px; font-weight: 600; }
.cross-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: cross-pulse 1.6s ease-in-out infinite; }
.cross-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 24px 0 0; padding: 0; list-style: none; }
.cross-track li { position: relative; display: grid; justify-items: center; gap: 8px; color: var(--muted); font-size: 13px; line-height: 16px; font-weight: 600; text-align: center; }
.cross-track li > span { position: relative; z-index: 1; width: 16px; height: 16px; border: 2px solid var(--line); border-radius: 50%; background: var(--paper); }
.cross-track li::before { content: ""; position: absolute; top: 7px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.cross-track li:first-child::before { display: none; }
.cross-track li.is-done, .cross-track li.is-now { color: var(--ink); }
.cross-track li.is-done > span { border-color: var(--ink); background: var(--ink); }
.cross-track li.is-done::before, .cross-track li.is-now::before { background: var(--ink); }
.cross-track li.is-now > span { border-color: var(--ink); box-shadow: 0 0 0 5px rgba(141, 177, 193, .4); }
@keyframes cross-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (max-width: 900px) {
  .chains-layout { display: block; }
  .chains-copy > p { font-size: 16px; line-height: 24px; }
  .chains-figure { margin-top: 40px; }
}
@media (max-width: 480px) {
  .acct-card { padding-inline: 16px; }
  .acct-tag { display: none; }
  .cross-card { padding: 16px; }
  .cross-track li { font-size: 11px; }
}

/* KEYS: quiet ruled rows ----------------------------------------------------- */
.keys-rows { border-top: 1px solid var(--line); }
.key-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 80px; align-items: start; padding-block: 24px; border-bottom: 1px solid var(--line); }
.key-row h3 { display: flex; align-items: center; gap: 16px; font-size: 18px; line-height: 28px; font-weight: 600; }
.key-icon { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper-soft); }
.key-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.key-row p { max-width: 560px; padding-top: 6px; color: var(--muted); }
@media (max-width: 900px) {
  .key-row { display: block; padding-block: 16px; }
  .key-row h3 { font-size: 16px; line-height: 24px; }
  .key-row p { margin-top: 8px; padding: 0 0 0 56px; }
}

/* FAQ ----------------------------------------------------------------------- */
.faq-more { margin-top: 24px; font-size: 14px; }

/* FOOTER: copy in the sky, the coast behind the whole footer ------------------ */
.site-footer { position: relative; isolation: isolate; min-height: 900px; padding-block: 96px 0; overflow: hidden; background: var(--paper); }
.footer-art { position: absolute; inset: 0; z-index: -1; height: 100%; margin: 0; }
.footer-art img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; image-rendering: pixelated; mask-image: none; -webkit-mask-image: none; }
.footer-main { position: relative; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 80px; }
.footer-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-columns nav { gap: 12px; }
.footer-socials { gap: 24px; margin-top: 24px; }
.footer-socials a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; line-height: 20px; font-weight: 600; }
.footer-socials a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom-content { position: relative; margin-top: 40px; padding-block: 0; color: var(--muted); gap: 32px; }
@media (max-width: 1000px) {
  .footer-main { gap: 40px; }
  .footer-columns { gap: 24px; }
}
@media (max-width: 900px) {
  .site-footer { min-height: 1000px; padding-top: 64px; }
  .footer-main { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin: 0; }
  .footer-columns nav:last-child { grid-column: 1 / -1; }
  .footer-art img { object-position: 45% bottom; }
}
@media (max-width: 700px) {
  .footer-main { display: block; }
  .footer-columns { margin-top: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-columns nav:last-child { grid-column: auto; }
  .footer-bottom-content { margin-top: 32px; font-size: 12px; }
  .footer-art img { object-position: 62% bottom; }
}
@media (max-width: 360px) {
  .footer-columns { gap: 24px 16px; }
}

/* APP PAGE: the wallet on its own, over the same scene ---------------------- */
.app-page { min-height: 100vh; background: var(--paper); }
.app-page .site-header { position: relative; z-index: 30; }
.app-scene { position: fixed; inset: 0; z-index: 0; display: block; overflow: hidden; pointer-events: none; }
.app-scene img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 100%; image-rendering: pixelated; }
.app-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(244, 242, 236, .92) 0, rgba(244, 242, 236, .4) 30%, rgba(244, 242, 236, 0) 55%); }
.app-workspace { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; gap: 16px; min-height: calc(100vh - 88px); padding: 24px 16px 64px; }
.app-workspace h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.app-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 14px; line-height: 20px; font-weight: 600; }
.app-links a { padding: 6px 12px; border-radius: 9999px; background: rgba(244, 242, 236, .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.app-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) {
  .app-workspace { padding-top: 8px; }
}
@media (max-width: 760px) {
  .app-scene { top: auto; height: 46vh; }
  .app-scene img { object-position: left bottom; }
  .app-scene::after { background: linear-gradient(to bottom, var(--paper) 0, rgba(244, 242, 236, 0) 40%); }
}

@media (prefers-reduced-motion: reduce) {
  .cross-dot, .hero-text-link { animation: none; transition: none; }
}

@media (max-width: 600px) {
  .acct-line { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 8px 12px; }
  .acct-line-end { grid-column: 2; margin-left: 0; text-align: left; }
  .acct-line-end b { display: inline; margin-right: 4px; }
}
