@font-face {
  font-family: Inter;
  src: url('assets/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  font-family: Inter, -apple-system, sans-serif;
  font-synthesis: none;
  color: #171717;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; background: #fff; }
button, textarea { font: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; color: inherit; background: none; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 2px solid #171717; outline-offset: 5px; }
button:disabled { cursor: wait; opacity: .6; }
[data-landing]:focus-visible { outline-color: transparent; }
h1, h2, p { margin: 0; }
img { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Swapped content shares one grid cell; whatever is leaving steps out of the
   flow so the incoming content sets the size at once. */
.stack { position: relative; display: grid; }
.stack > * { grid-area: 1 / 1; min-width: 0; }
.stack > .is-leaving { position: absolute; inset: 0 0 auto; pointer-events: none; }

.page { min-height: 100svh; display: grid; grid-template-rows: 88px 1fr 72px; }
header { position: relative; display: flex; align-items: center; justify-content: center; padding-top: max(env(safe-area-inset-top), var(--orb-safe-top, 0px)); }
.logout { position: absolute; right: 24px; padding: 14px 0; font-size: 12px; color: #737373; }
.brand-lockup { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 32px; }
/* No CSS transitions on opacity, transform or filter for anything Motion
   animates: when Motion's animation ends, Safari briefly falls back to the
   starting value and the transition replays it, which reads as a blink. */
.brand-lockup a { display: inline-flex; align-items: center; min-height: 44px; border-radius: 4px; }
.lens { display: inline-flex; align-items: center; gap: 7px; font-size: 28px; font-weight: 550; letter-spacing: -1px; }
.brand-cross { display: inline-block; font-size: 20px; font-weight: 300; color: #737373; }
main { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 32px 24px 64px; }
.claim { position: relative; width: 320px; max-width: 100%; text-align: center; }
h1 { font-size: 34px; font-weight: 500; letter-spacing: -1.3px; line-height: 1.12; outline: none; }
h1.is-pass { font-size: 20px; line-height: 1.35; letter-spacing: -.4px; text-wrap: balance; }
.word { display: inline-block; }
.subtitle { margin-top: 14px; color: #737373; font-size: 14px; line-height: 1.5; }

.primary { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 48px; padding: 13px 20px; overflow: hidden; background: #171717; color: #fff; font-size: 14px; font-weight: 500; transition: background 120ms ease; }
.primary:hover:not(:disabled) { background: #353535; }
.primary:active:not(:disabled) { background: #505050; }
.primary img { width: 18px; height: 18px; }
.primary > .stack { place-items: center; }
.primary.is-busy { width: 48px; padding: 0; }
.primary.is-busy:disabled { opacity: 1; }
.action-slot { display: flex; justify-content: center; margin-top: 32px; }
.action-label { display: flex; align-items: center; justify-content: center; gap: 9px; white-space: nowrap; }
.action-icon { display: grid; flex: none; }
.glyph, .done-mark { display: grid; place-items: center; }
.glyph svg { width: 20px; height: 20px; }
.done-mark { width: 48px; height: 48px; border-radius: 50%; background: #171717; color: #fff; }
.done-mark svg { width: 20px; height: 20px; }

.shape-slot { margin-top: 32px; }
.shape-slot.has-pass { margin-top: 26px; }
.code { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; min-height: 84px; overflow: hidden; padding: 16px 12px; background: #f5f5f5; font-size: 14px; letter-spacing: .3px; }
.code svg { width: 18px; height: 18px; flex: none; color: #737373; }
.reveal-cover { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; width: 100%; letter-spacing: 0; background: #f5f5f5; transition: background 120ms ease; }
.reveal-cover:hover { background: #efefef; }
.reveal-cover:focus-visible { outline-offset: -5px; }
.cover-label { display: inline-flex; align-items: center; gap: 10px; }
.cover-label .stack { justify-items: center; }
.cover-text { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.cover-text.finding { color: #737373; }
.code-value { min-width: 0; overflow-wrap: anywhere; text-align: left; }
.char { display: inline-block; white-space: pre; }
.code-actions { display: flex; flex: none; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; transition: background 120ms ease; }
.icon-button:hover { background: rgb(0 0 0 / 6%); }
.icon-button .stack { place-items: center; }
.icon-swap { display: grid; place-items: center; }

.share { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.share-cell { position: relative; display: grid; min-width: 0; }
.share-button { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 52px; padding: 13px 10px; overflow: hidden; font-size: 13px; font-weight: 500; transition: background 120ms ease; }
.share-button > .stack { width: 100%; justify-items: center; }
.share-label { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.share-icon { display: grid; place-items: center; }
.sheen { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(100deg, transparent, rgb(255 255 255 / 35%), transparent); pointer-events: none; }
.share-x .sheen { background: linear-gradient(100deg, transparent, rgb(255 255 255 / 90%), transparent); }
.share-burst { position: absolute; inset: 0; pointer-events: none; }
.share-burst svg { position: absolute; top: 50%; left: 50%; width: 240px; height: 120px; margin: -60px 0 0 -120px; overflow: visible; }
.share-ring { position: absolute; inset: 0; border: 1.5px solid #171717; border-radius: 26px; }
.share-note { margin-top: 14px; justify-items: center; font-size: 12px; line-height: 1.5; color: #737373; }
.share-lens { background: #171717; color: #fff; }
.share-lens:hover { background: #353535; }
.share-lens img { filter: invert(1); }
.share-x { background: #f0f0f0; }
.share-x:hover { background: #e7e7e7; }
.share-button svg { width: 16px; height: 16px; flex: none; }

.sheet-layer { position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sheet-layer.is-leaving { pointer-events: none; }
.scrim { position: absolute; inset: 0; background: rgb(0 0 0 / 25%); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sheet { position: relative; width: 340px; max-width: 100%; max-height: calc(100svh - 32px); overflow: hidden auto; padding: 40px 28px 28px; color: #171717; background: #fff; text-align: center; }
.close { position: absolute; top: 4px; right: 7px; z-index: 1; width: 44px; height: 44px; font-size: 24px; font-weight: 300; color: #737373; }
.back { position: absolute; top: 4px; left: 7px; z-index: 1; width: 44px; height: 44px; font-size: 21px; color: #737373; }
h2 { font-size: 24px; font-weight: 500; letter-spacing: -.7px; outline: none; }
.lede { margin-top: 12px; font-size: 13px; line-height: 1.6; color: #737373; }
.options { display: grid; gap: 8px; margin-top: 26px; }
.option { display: grid; grid-template-columns: 22px minmax(0, 1fr) 12px; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 14px 16px; background: #f5f5f5; font-size: 14px; text-align: left; transition: background 120ms ease; }
.option:hover { background: #ededed; }
.option-icon { display: grid; }
.option img { width: 22px; height: 22px; object-fit: contain; }
.option .arrow { color: #737373; }
.profile-option { display: flex; align-items: center; gap: 12px; position: relative; min-height: 68px; padding: 12px; border: 1px solid #ededed; border-radius: 10px; text-align: left; cursor: pointer; transition: background 150ms ease; }
.profile-option:has(input:checked) { background: #f5f5f5; }
.profile-option:has(input:focus-visible) { outline: 2px solid #171717; outline-offset: 3px; }
.profile-option input { position: absolute; right: 14px; z-index: 1; width: 16px; height: 16px; margin: 0; accent-color: #171717; }
.ring { position: absolute; inset: -1px; border: 1px solid #171717; border-radius: 10px; pointer-events: none; }
.avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #ededed; font-size: 14px; }
.profile-option strong { display: block; font-size: 13px; font-weight: 500; padding-right: 24px; }
.profile-option small { display: block; margin-top: 4px; font-size: 12px; color: #737373; }
.wallet-note { margin-top: 20px; font-size: 12px; color: #737373; line-height: 1.5; }
.wallet-note + .action-slot { margin-top: 20px; }
textarea { display: block; width: 100%; margin-top: 24px; padding: 14px; border: 0; border-radius: 8px; background: #f5f5f5; resize: vertical; font-size: 14px; line-height: 1.6; color: #171717; }
/* The share sheet shows the post as it will look. */
.post { margin-top: 20px; padding: 14px; border: 1px solid #ededed; border-radius: 16px; text-align: left; transition: border-color 150ms ease; }
.post:has(textarea:focus-visible) { border-color: #171717; }
.post-head { display: flex; align-items: center; gap: 10px; }
.post .avatar { width: 32px; height: 32px; font-size: 13px; }
.post-who { display: flex; flex: 1; flex-direction: column; min-width: 0; font-size: 13px; line-height: 1.3; }
.post-who strong { font-weight: 500; }
.post-who small { font-size: 12px; color: #737373; }
.post-where { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #f5f5f5; }
.post-where svg, .post-where img { width: 14px; height: 14px; }
.post textarea { margin-top: 10px; padding: 0; border-radius: 0; background: none; resize: none; }
.post textarea:focus-visible { outline: none; }
.link-card { position: relative; display: flex; flex-direction: column; margin-top: 12px; overflow: hidden; border: 1px solid #ededed; border-radius: 12px; }
.link-card img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; background: #1d2122; }
.link-domain { position: absolute; left: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgb(0 0 0 / 65%); color: #fff; font-size: 11px; }
.link-meta { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-top: 1px solid #ededed; font-size: 12px; line-height: 1.3; }
.link-meta strong { font-weight: 500; }
.link-meta small { font-size: 11px; color: #737373; }
.counter { display: flex; justify-content: flex-end; margin-top: 10px; font-size: 12px; font-variant-numeric: tabular-nums; color: #737373; }
.counter.is-near { color: #171717; }
.counter.is-over { color: #b42318; }
#orb-qr img { width: 228px; height: auto; max-width: 100%; margin: 20px auto 0; }
#orb-qr .primary { margin-top: 20px; }
.pairing-code { margin: 0 0 20px; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: .24em; }
.share-qr { display: block; width: 228px; max-width: 100%; height: auto; margin: 24px auto 0; }

/* The claim moment plays on its own layer above the emptied page. */
.stage { position: fixed; inset: 0; z-index: 12; pointer-events: none; }
.stage-svg { position: absolute; top: 50%; left: 50%; width: 360px; height: 360px; margin: -180px 0 0 -180px; overflow: visible; }
.stage-center { position: absolute; inset: 0; display: grid; place-items: center; }
.stage-mark { display: block; color: #171717; }
.seed { display: grid; place-items: center; width: 48px; height: 48px; background: #171717; color: #fff; }
.seed-icon { display: grid; }
.seed-icon svg { width: 20px; height: 20px; }
.stage-caption { position: absolute; left: 0; right: 0; top: calc(50% + 46px); font-size: 12px; color: #737373; text-align: center; }
.nym-mark { display: block; color: #000; }
/* The first-load mixnet, drawn at 1:1 in the middle of the screen. */
.intro { position: fixed; inset: 0; z-index: 12; display: grid; place-items: center; pointer-events: none; }
.intro svg { width: 88px; height: 48px; overflow: visible; }
.return-note { margin-top: 8px; font-size: 12px; color: #737373; }
/* Found and sealed: the packets' layer spans the claim, the seal hangs off the
   pass card's corner, above the card and out of the way of clicks. */
.packets { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.stamp-layer { pointer-events: none; z-index: 1; }
.stamp { position: absolute; z-index: 1; pointer-events: none; }
.stamp svg { display: block; }
.stamp-ink { position: absolute; inset: 0; border-radius: 50%; background: #171717; }
.stamp-dust { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; overflow: visible; }

.toast-region { position: fixed; left: 0; right: 0; bottom: 78px; z-index: 30; display: flex; justify-content: center; padding: 0 20px; pointer-events: none; }
.toast { max-width: 100%; overflow: hidden; padding: 13px 18px; color: #fff; background: #171717; font-size: 12px; line-height: 1.5; text-align: center; }
.toast .stack { justify-items: center; }

@media (max-width: 500px) {
  .page { grid-template-rows: 80px 1fr 64px; }
  main { padding: 32px 24px 48px; }
}
@media (max-width: 360px) {
  .share-button { padding: 13px 8px; font-size: 12px; }
  .share-label { gap: 6px; }
  .share-button img { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
