/* preopen.css — the pre-open home (/in, FINALCALL). Mobile first; the house colours and type
   (soon.css, welcome-card.js): black ground, Edge green #4ade4a, gold #f5c542, Inter + JetBrains Mono. */
*{box-sizing:border-box;margin:0;padding:0}
html,body{background:#000;color:#e8ece9;font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;min-height:100%;-webkit-text-size-adjust:100%}
body{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;
  background:radial-gradient(120% 60% at 50% -10%,rgba(74,222,74,.10),rgba(74,222,74,0) 60%),#000}
a{color:inherit}
button{font:inherit;color:inherit}
.po-preview{background:#15130a;border-bottom:1px solid #4b3d12;color:#e8e2c8;font-size:12px;line-height:1.4;padding:8px 14px;text-align:center}
.po-top{display:flex;align-items:center;justify-content:space-between;padding:calc(14px + env(safe-area-inset-top,0px)) 18px 6px;max-width:1080px;width:100%;margin:0 auto}
.po-logo img{display:block;width:118px;height:auto}
.po-out{background:none;border:1px solid rgba(255,255,255,.12);border-radius:999px;color:#9aa39e;font:600 11px 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.06em;text-transform:uppercase;padding:7px 12px;cursor:pointer}
.po-out:hover{color:#fff;border-color:rgba(255,255,255,.25)}
.po{flex:1;width:100%;max-width:560px;margin:0 auto;padding:18px 18px 36px;display:flex;flex-direction:column;gap:18px}
.po-loading{color:#7c877f;font:500 12px 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.08em;text-transform:uppercase;text-align:center;padding:60px 0}
.po-loading.bad{color:#ff8078;text-transform:none;letter-spacing:0;font-family:inherit;font-size:14px}

/* the hero */
.po-hero{display:flex;flex-direction:column;gap:12px;padding-top:6px}
.po-eyebrow{font:700 10.5px 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.18em;text-transform:uppercase;color:#f5c542}
.po-eyebrow.in{color:#4ade4a}
.po-h1{font-weight:800;font-size:clamp(30px,8.4vw,46px);line-height:1.02;letter-spacing:-.035em;color:#fff}
.po-h1 em{font-style:normal;color:#4ade4a}
.po-lead{color:#a8b1ab;font-size:15px;line-height:1.5}

/* the clock */
.po-clock{border:1px solid rgba(74,222,74,.28);background:linear-gradient(180deg,rgba(74,222,74,.07),rgba(74,222,74,.02));border-radius:16px;padding:14px 16px 12px}
.po-clock-l{font:700 10px 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.18em;text-transform:uppercase;color:#7ED956;margin-bottom:8px}
.po-clock-row{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.po-clock-row div{background:#060908;border:1px solid #1d2520;border-radius:11px;padding:9px 4px 7px;text-align:center}
.po-clock-row b{display:block;font:800 clamp(22px,7vw,32px)/1 'JetBrains Mono',ui-monospace,monospace;color:#fff;font-variant-numeric:tabular-nums}
.po-clock-row i{display:block;font:600 9px 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.16em;text-transform:uppercase;color:#6f7a73;font-style:normal;margin-top:5px}
.po-clock-when{margin-top:9px;font:500 11.5px 'JetBrains Mono',ui-monospace,monospace;color:#9aa39e;text-align:center}

/* the grinder (preopen-grind.js): the cover's rolling address, same look (1edge.app before pre-open: .grind / .slab /
   .addr .roll / .gate / .word), sized to the column — 44 JetBrains Mono cells = 26.4em, so the font follows the width */
.po-grind{container-type:inline-size;margin-bottom:-6px}
.po-grind .slab{border:1px solid rgba(255,255,255,.1);border-radius:10px;background:linear-gradient(#141519,#0b0c0f);padding:22px 18px;position:relative;overflow:hidden;transition:border-color .3s}
.po-grind .slab::after{content:'';position:absolute;left:0;right:0;top:50%;height:1px;background:#000;opacity:.55}
.po-grind .addr{display:block;font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:500;font-size:clamp(8px,2.62vw,19px);font-size:clamp(8px,calc((100cqi - 40px) / 26.7),19px);line-height:1.35;white-space:nowrap;color:#fff;text-align:center;font-variant-ligatures:none}
.po-grind .addr .roll{color:#e8e8e8}
.po-grind .addr .roll span{transition:color .22s linear,text-shadow .22s linear}
.po-grind .addr .hit{color:#4ade4a;text-shadow:0 0 12px rgba(74,222,74,.42)}
.po-grind .addr .gate{color:#e8e8e8}
.po-grind .addr .gate.on,.po-grind .addr .word{color:#4ade4a;text-shadow:0 0 14px rgba(74,222,74,.45)}
.po-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* egg A: the gold beat (…1EDGE), tappable while it lasts */
.po-grind .addr .gold,.po-grind .addr .gate.gold,.po-grind .addr .word.gold{color:#f5c542;text-shadow:0 0 14px rgba(245,197,66,.5)}
.po-grind .slab.gilt{border-color:rgba(245,197,66,.4)}
.po-grind .slab.tap{cursor:pointer}
.po-grind .slab.tap:focus-visible{outline:2px solid #f5c542;outline-offset:2px}
.po-grind-egg{margin-top:10px;font:500 12px/1.45 'JetBrains Mono',ui-monospace,monospace;color:#f5c542;text-align:center;opacity:0;transition:opacity .4s}
.po-grind-egg.on{opacity:1}
/* egg C: the countdown's last line, for a beat */
.po-clock-when{transition:opacity .3s,color .3s}
.po-clock-when.fade{opacity:0}
.po-clock-when.egg{color:#f5c542}
.po-clock-row div{touch-action:manipulation;-webkit-user-select:none;user-select:none}
/* egg B: the hidden sheet (the house bottom sheet, the 1EDGE text logo) */
.po-egg .po-egg-head{justify-content:center;padding:10px 18px 14px}
.po-egg-logo{display:block;width:150px;height:auto}
.po-egg-body{padding:18px 22px 22px;display:flex;flex-direction:column;gap:10px}
.po-sheet.po-egg h2{font:800 22px/1.1 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.02em;text-transform:none;color:#f5c542;margin-bottom:4px}
.po-egg-body p{color:#c8d0cb;font:500 13.5px/1.5 'JetBrains Mono',ui-monospace,monospace}
.po-egg-body .po-egg-foot{color:#5d6663;font-size:11.5px;margin-top:4px}
.po-egg-body .po-ghost{align-self:flex-start;margin-top:8px}
@media (prefers-reduced-motion:reduce){.po-grind .addr .roll span,.po-clock-when,.po-grind-egg{transition:none}}

/* buttons */
.po-cta{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;border-radius:14px;border:0;background:#4ade4a;color:#04120a;
  font:800 13px 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.08em;text-transform:uppercase;text-decoration:none;cursor:pointer;box-shadow:0 10px 30px -12px rgba(74,222,74,.6)}
.po-cta:hover{background:#5fe85f}
.po-cta:disabled{opacity:.6;cursor:default}
.po-ghost{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:0 14px;border-radius:11px;border:1px solid rgba(255,255,255,.14);background:transparent;color:#e8ece9;
  font:700 11px 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.08em;text-transform:uppercase;text-decoration:none;cursor:pointer;white-space:nowrap}
.po-ghost:hover{border-color:rgba(255,255,255,.3);color:#fff}
.po-ghost.ok{border-color:rgba(74,222,74,.6);color:#4ade4a}
.po-link{background:none;border:0;color:#9fd88b;font:600 13px 'Inter',system-ui,sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:4px}
.po-small{color:#7c877f;font-size:12.5px;line-height:1.45;text-align:center}
.po-err{color:#ff8078;font-size:12.5px;text-align:center;min-height:1em}

/* cards */
.po-card{background:#0a0d0b;border:1px solid #1d2520;border-radius:16px;padding:16px}
.po-card h2{font:800 16px/1.2 'Inter',system-ui,sans-serif;color:#fff;letter-spacing:-.01em;margin-bottom:6px}
.po-card p{color:#a8b1ab;font-size:13.5px;line-height:1.5}
.po-bring{border-style:dashed;border-color:#2d5a2d;background:rgba(74,222,74,.04);display:flex;flex-direction:column;gap:12px}
.po-bring .po-ghost{align-self:flex-start;border-color:rgba(74,222,74,.45);color:#9fd88b}

/* the steps */
.po-steps{list-style:none;display:grid;gap:10px;counter-reset:st}
.po-steps li{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border:1px solid #161b18;border-radius:14px;background:#070908;counter-increment:st}
.po-steps li::before{content:counter(st,decimal-leading-zero);font:800 12px 'JetBrains Mono',ui-monospace,monospace;color:#4ade4a;border:1px solid rgba(74,222,74,.35);border-radius:8px;padding:5px 6px;flex:none}
.po-steps b{display:block;color:#fff;font-size:14px;margin-bottom:2px}
.po-steps span{color:#8b958f;font-size:12.5px;line-height:1.45}

/* you're in */
.po-id{display:flex;gap:14px;align-items:center}
.po-pass{width:84px;height:84px;border-radius:14px;overflow:hidden;flex:none;border:1px solid rgba(74,222,74,.35);background:#0c120d;box-shadow:0 12px 30px -16px rgba(74,222,74,.55)}
.po-pass img{width:100%;height:100%;object-fit:cover;display:block}
.po-id-main{min-width:0;flex:1}
.po-rows{display:grid;gap:10px;margin-top:2px}
.po-row{display:flex;align-items:center;gap:10px;justify-content:space-between;border:1px solid #1d2520;border-radius:12px;background:#060908;padding:10px 12px;min-width:0}
.po-row-l{min-width:0}
.po-row-link{margin-top:12px}
.po-row-k{font:600 9.5px 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.16em;text-transform:uppercase;color:#6f7a73;margin-bottom:3px}
.po-row-v{font:700 14px 'JetBrains Mono',ui-monospace,monospace;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.po-row-v.dim{color:#7c877f;font-weight:500}
.po-fund{margin-top:10px}
.po-row-addr{align-items:flex-start}
.po-row-addr .po-row-k{display:flex;align-items:center;gap:6px}
.po-ck{width:14px;height:14px;display:inline-block}
.po-ck+.po-ck{margin-left:-2px}
.po-bal{font:600 12.5px 'JetBrains Mono',ui-monospace,monospace;color:#4ade4a;margin-top:4px;font-variant-numeric:tabular-nums}
.po-addr{white-space:normal;word-break:break-all;font-size:12.5px;font-weight:600;line-height:1.35}
.po-fund-note{text-align:left;margin:0}
.po-note{font:600 9.5px 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.14em;text-transform:uppercase;color:#5d6663;margin-top:10px}
.po-ref-n{display:flex;align-items:baseline;gap:8px;margin:12px 0 2px}
.po-ref-n b{font:800 28px/1 'JetBrains Mono',ui-monospace,monospace;color:#4ade4a}
.po-ref-n span{color:#a8b1ab;font-size:13px}
.po-ref-acts{display:flex;gap:8px;margin-top:12px}
.po-ref-acts .po-cta{min-height:44px;font-size:12px}
.po-cardimg{display:block;width:100%;height:auto;aspect-ratio:1200/630;border-radius:12px;border:1px solid #1d2520;background:#0c0f0d;margin-top:10px}
/* your card = the editor (founder 09 Oct): the picture is a button over the card's picture (og-card.js: 168 px at 64,64
   of 1200×630, corners 26%), the rest of the card is the banner button; our own camera mark, no labels on the card */
.po-cardbox{position:relative;margin-top:10px}
.po-cardbox .po-cardimg{margin-top:0}
.po-pfp{position:absolute;border:0;padding:0;background:transparent;color:#fff;cursor:pointer;-webkit-tap-highlight-color:transparent}
.po-pfp-banner{inset:0;border-radius:12px}
.po-pfp-avatar{left:5.333%;top:10.159%;width:14%;aspect-ratio:1;border-radius:26%;overflow:hidden}
.po-pfp-ic{position:absolute;display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:rgba(0,0,0,.66);border:1px solid rgba(255,255,255,.22);box-shadow:0 4px 14px -4px rgba(0,0,0,.8)}
.po-pfp-banner .po-pfp-ic{top:10px;right:10px}
.po-pfp-avatar .po-pfp-ic{right:-2px;bottom:-2px;width:26px;height:26px}
.po-pfp-avatar .po-pfp-ic svg{width:14px;height:14px}
.po-pfp:hover .po-pfp-ic,.po-pfp:focus-visible .po-pfp-ic{border-color:#4ade4a;color:#4ade4a}
.po-pfp:focus-visible{outline:2px solid #4ade4a;outline-offset:2px}
.po-pfp-avatar:hover{box-shadow:inset 0 0 0 2px rgba(74,222,74,.7)}
.po-pfp:disabled{cursor:default}
.po-pfp-local{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.po-cardbox.up .po-cardimg{filter:brightness(.55)}
.po-cardbox.up .po-pfp-ic{display:none}
.po-pfp-up{position:absolute;left:12px;right:12px;bottom:12px;display:flex;flex-direction:column;gap:7px;color:#e8ece9;font-size:12px;pointer-events:none}
.po-pfp-bar{height:3px;border-radius:3px;background:rgba(255,255,255,.14);overflow:hidden}
.po-pfp-bar i{display:block;width:38%;height:100%;border-radius:3px;background:#4ade4a;animation:po-pfp-run 1.1s ease-in-out infinite}
@keyframes po-pfp-run{0%{transform:translateX(-100%)}100%{transform:translateX(270%)}}
@media (prefers-reduced-motion:reduce){.po-pfp-bar i{animation:none;width:100%;opacity:.7}}
.po-pfp-err{margin-top:8px}
.po-pfp-err:empty{display:none}
.po-pfp-file{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.po-next{list-style:none;display:grid;gap:8px;margin-top:10px}
.po-next li{display:flex;gap:10px;align-items:flex-start}
.po-next li::before{content:'';width:8px;height:8px;border-radius:50%;background:#4ade4a;box-shadow:0 0 0 4px rgba(74,222,74,.12);margin-top:6px;flex:none}
.po-next b{color:#fff;font-size:14px}
.po-next span{display:block;color:#8b958f;font-size:12.5px;line-height:1.45}

/* footer */
.po-foot{padding:18px 20px calc(24px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;align-items:center;gap:10px;border-top:1px solid rgba(255,255,255,.06)}
.po-legal{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 18px}
.po-legal a{font:600 10px 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.08em;text-transform:uppercase;color:#888;text-decoration:none;cursor:pointer}
.po-legal a:hover{color:#ccc}
.po-copy{font-size:11px;color:#555}
.po-social{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 22px}
.po-social a{display:inline-flex;align-items:center;gap:6px;font:600 11px 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.06em;color:#aaa;text-decoration:none}
.po-social a:hover{color:#e5e5e5}
.po-social svg{width:13px;height:13px;flex-shrink:0}

/* the house bottom sheet (pwg-handle + _pwMakeSwipeable, pw-swipe.js): the legal documents */
.po-wrap{position:fixed;inset:0;z-index:9500;background:rgba(0,0,0,.62);display:flex;align-items:flex-end;justify-content:center}
.po-wrap[hidden]{display:none}
.po-sheet{width:100%;max-width:640px;max-height:90vh;max-height:90dvh;display:flex;flex-direction:column;background:#0a0d0b;border:1px solid #1d2520;border-bottom:0;border-radius:20px 20px 0 0;padding-bottom:env(safe-area-inset-bottom,0px)}
.po-sheet .pwg-handle{display:flex;justify-content:center;padding:8px 0 4px;cursor:grab;touch-action:none}
.po-sheet .pwg-handle span{width:34px;height:3px;border-radius:3px;background:rgba(255,255,255,.18)}
.po-sheet .pwg-head{display:flex;justify-content:space-between;align-items:center;padding:6px 18px 12px;border-bottom:1px solid rgba(255,255,255,.07);touch-action:none}
.po-sheet h2{font:700 14px 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.06em;text-transform:uppercase;color:#fff}
.po-sheet .pwg-head button{background:none;border:0;color:#9aa39e;font:600 13px 'Inter',system-ui,sans-serif;cursor:pointer;padding:6px 2px}
.po-doc-body{overflow:auto;padding:14px 18px;font-size:13.5px;line-height:1.6;color:#c8c8c8;-webkit-overflow-scrolling:touch}
.po-doc-body p,.po-doc-body ul{margin:0 0 10px}
.po-doc-body ul{padding-left:18px}
.po-doc-body h3,.po-doc-body h4{margin:14px 0 6px;color:#f0f0f0}
.po-doc-body a{color:#7ef07e}
.po-doc-foot{padding:10px 18px;font-size:11px;color:#666;border-top:1px solid rgba(255,255,255,.07)}

/* wider screens: the same column, the steps and the "what opens" list side by side */
@media (min-width:900px){
  .po-top{padding:22px 32px 8px}
  .po-logo img{width:140px}
  .po{max-width:1080px;padding:28px 32px 56px;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:22px 40px;align-items:start}
  .po-col{display:flex;flex-direction:column;gap:18px;min-width:0}
  .po-hero{padding-top:30px}
  .po-h1{font-size:54px}
  .po-lead{font-size:16px;max-width:520px}
  .po-cta{max-width:420px}
  .po-wrap{align-items:center}
  .po-sheet{border-bottom:1px solid #1d2520;border-radius:20px;max-height:82vh}
  .po-sheet.po-egg{max-width:460px}
  .po-sheet .pwg-handle{display:none}
}
@media (max-width:899px){ .po-col{display:contents} }

/* ── Founder 09 Oct: the whole pre-open page is JetBrains Mono, weight 400 (headline, body, countdown, grinder,
   buttons, sheets). One rule at the end so every earlier font/weight above follows it. */
html, body, body *, body *::before, body *::after {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-weight: 400 !important;
}

/* The "in" view (founder 09 Oct): "You're in." on one line, then ONE card (your share card with the picture and
   banner pickers, your pass tier, @username, link, Edit), then the countdown and the grinder, all on a phone's
   first screen. The lead repeats the countdown's date, so a phone drops it. */
.po-hero-in{gap:6px}
.po-me .po-cardbox{margin-top:0}
.po-me-row{display:flex;align-items:center;gap:12px;margin-top:12px;min-width:0}
.po-me-row.first{margin-top:0}
.po-me-pass{width:48px;height:48px;border-radius:11px;overflow:hidden;flex:none;border:1px solid rgba(74,222,74,.35);background:#0c120d;box-shadow:0 10px 24px -14px rgba(74,222,74,.55)}
.po-me-pass img{width:100%;height:100%;object-fit:cover;display:block}
.po-me-who{flex:1;min-width:0}
.po-me-tier{font:600 9.5px 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.16em;text-transform:uppercase;color:#4ade4a;margin-bottom:2px}
.po-me-name{font:700 15px 'JetBrains Mono',ui-monospace,monospace;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.po-me-name.dim{color:#a8b1ab;font-weight:600}
.po-me-link{font:500 11px 'JetBrains Mono',ui-monospace,monospace;color:#7c877f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}
.po-me-edit{flex:none;width:auto}
.po-me-edit.po-cta{min-height:44px;padding:0 16px;font-size:12px}
.po-me .po-err:empty{display:none}
@media (max-width:899px){
  .po-hero-in .po-lead{display:none}
  .po-hero-in .po-eyebrow{display:none}
}
/* Telegram under your card (TGLINK): the same row as the link row, a little smaller */
.po-row-tg{margin-top:10px;padding:8px 12px}
.po-row-tg .po-row-v{font-size:13px;white-space:normal}
.po-row-tg .po-ghost{min-height:34px}

/* Back up your wallet (founder 09 Oct): a quiet link under the card, a house bottom sheet (handle, swipe, Later). */
.po-link{display:block;margin:10px auto 0;background:none;border:0;color:#9fd88b;font:600 12px 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.03em;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:6px}
.po-bk{position:fixed;inset:0;z-index:100050;background:rgba(0,0,0,0);display:flex;align-items:flex-end;justify-content:center;transition:background .22s ease}
.po-bk.in{background:rgba(0,0,0,.6)}
.po-bk-b{width:100%;max-width:440px;background:#101312;border:1px solid #2a2f2c;border-bottom:0;border-radius:18px 18px 0 0;padding:0 18px calc(16px + env(safe-area-inset-bottom,0px));color:#e8ece9;font-family:Inter,system-ui,sans-serif;transform:translateY(24px);transition:transform .24s ease}
.po-bk.in .po-bk-b{transform:none}
@media (min-width:641px){.po-bk{align-items:center}.po-bk-b{border-bottom:1px solid #2a2f2c;border-radius:18px;padding-top:16px}.po-bk-b .pwg-handle{display:none}}
.po-bk-b .pwg-handle{display:flex;justify-content:center;padding:8px 0 4px}.po-bk-b .pwg-handle span{width:34px;height:3px;border-radius:3px;background:rgba(255,255,255,.18)}
.po-bk-top{display:flex;align-items:center;justify-content:space-between;margin:6px 0 10px}.po-bk-top img{height:16px;width:auto}
.po-bk-later{background:none;border:0;color:#9aa39e;font:600 13px Inter,system-ui,sans-serif;padding:6px 2px;cursor:pointer}
.po-bk-b h3{margin:0 0 4px;font-size:17px;font-weight:700}
.po-bk-b p{margin:0 0 14px;color:#a8b1ab;font-size:13px;line-height:1.45}
.po-bk-row{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;margin-bottom:8px;border-radius:12px;border:1px solid #243021;background:rgba(126,217,86,.06);color:#e8ece9;font:600 14px Inter,system-ui,sans-serif;cursor:pointer;text-align:left}
.po-bk-row img{width:20px;height:20px;border-radius:50%}.po-bk-row img.po-bk-2{margin-left:-18px}
.po-bk-row span{flex:1}.po-bk-row em{font-style:normal;color:#7ed956;font-size:18px}
.po-bk-b .po-bk-warn{margin:6px 0 0;color:#c9a55c;font-size:12px}
