/* PEP — the beta invitation pages (invite-pages-1122): the waitlist (the home address for a visitor without access) and the
   invitation entry (/join: password, code, account, the one-time welcome). A sheet of their own, small and public: these pages
   open before any access, on a phone first. The tokens, fonts, wordmark, button, field and focus ring are the production ones
   (assets/pep.css), copied by value - change them there and here together. The poster is the owner's R53 (assets/invite/). */
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url(fonts/inter-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Jost';font-style:normal;font-weight:100 900;font-display:swap;src:url(fonts/jost-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Vazirmatn';font-style:normal;font-weight:100 900;font-display:swap;src:url(fonts/vazirmatn-fa.woff2) format('woff2');unicode-range:U+060C, U+061B, U+061F, U+0621-063A, U+0640-0655, U+0660-066D, U+0670, U+067E, U+0686, U+0698, U+06A9, U+06AF, U+06C0, U+06CC, U+06F0-06F9, U+200C-200E, U+2010-2011, U+FDFC}
@font-face{font-family:'Inter Fallback';src:local('Arial'),local('ArialMT');size-adjust:107.06%;ascent-override:90.49%;descent-override:22.56%;line-gap-override:0%}
:root{
  --c-bg:#08080a;--c-bg-2:#111114;--c-bg-3:#18181c;
  --c-ink:#f2efe9;--c-ink-rgb:242 239 233;--c-white:#ffffff;
  --c-resin:#f3b3a8;--c-ok:#7cc79a;--c-check:#e8b65a;
  --ink:var(--c-ink);--mute:rgb(var(--c-ink-rgb)/.62);--soft:rgb(var(--c-ink-rgb)/.54);--line:rgb(var(--c-ink-rgb)/.16);
  --ui:"Inter","Inter Fallback",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --word:"Jost","Century Gothic",system-ui,sans-serif;
  --e:cubic-bezier(.22,.61,.12,1);
  color-scheme:dark;
}
html[lang="fa"]{--ui:"Vazirmatn","Inter","Inter Fallback",system-ui,sans-serif;--word:"Vazirmatn","Jost",system-ui,sans-serif}
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;background:var(--c-bg);color:var(--ink);overflow-x:hidden;overflow-x:clip}   /* clip: no scroll container, so the phone's sticky Send row sticks to the screen */
body{font:400 16px/1.55 var(--ui);-webkit-font-smoothing:antialiased;min-height:100svh}
a{color:inherit}
:focus-visible{outline:2px solid rgb(var(--c-ink-rgb)/.85);outline-offset:3px;border-radius:8px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
[hidden]{display:none!important}

/* the page: one column on a phone (the poster above, the card below), two from 900 px (the poster beside the card) */
.bx{display:grid;grid-template-rows:auto 1fr;min-height:100svh}
.bx-art{position:relative;height:44svh;min-height:220px;overflow:hidden;background:#050505}
.bx-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 0}   /* top-anchored on a phone: the poster's own P E P title (its foot) stays out of the card's way */
.bx-art::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,transparent 45%,var(--c-bg) 98%);pointer-events:none}
.bx-main{display:flex;flex-direction:column;align-items:center;padding:0 16px 32px;margin-top:-56px;position:relative}
/* the keyboard open on a phone (viewport interactive-widget=resizes-content: the page gets shorter): the poster steps aside, the
   field and its button stay in view above the keyboard */
@media (max-height:560px) and (max-width:899px){.bx-art{height:18svh;min-height:0}.bx-main{margin-top:-24px}}
@media (min-width:900px){
  .bx{grid-template-rows:none;grid-template-columns:minmax(0,1fr) minmax(400px,560px)}
  .bx-art{height:auto;min-height:100svh}
  .bx-art img{position:absolute;inset:0;object-position:50% 40%}
  .bx-art::after{background:linear-gradient(to right,transparent 55%,var(--c-bg) 99%)}
  html[dir="rtl"] .bx-art::after{background:linear-gradient(to left,transparent 55%,var(--c-bg) 99%)}
  .bx-main{justify-content:center;margin:0;padding:96px 48px 48px}
}

/* the languages: the site's own list (pep.css .lang), first on the page and at its top, on every width */
.bx-top{position:absolute;top:max(12px,env(safe-area-inset-top));inset-inline-end:16px;z-index:5;padding:8px 14px;border-radius:999px;
  background:rgb(8 8 10/.55);border:1px solid rgb(var(--c-ink-rgb)/.14);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.lang{font-size:13px;color:var(--soft);white-space:nowrap}
.lang a{color:var(--mute);text-decoration:none;unicode-bidi:isolate;display:inline-block;padding:4px 2px}
.lang a:hover{color:var(--ink)}
.lang a[aria-current="true"]{color:var(--ink);text-decoration:underline;text-underline-offset:3px}

/* the card */
.bx-card{width:100%;max-width:440px;display:grid;gap:14px}
.logo{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);justify-self:start}
.logo .mark{width:24px;height:24px;fill:currentColor}
.logo span{font:300 17px/1 var(--word);letter-spacing:.34em;margin-inline-end:-.34em}
.bx-h{margin:6px 0 0;font:500 clamp(26px,6.4vw,36px)/1.2 var(--ui);letter-spacing:-.015em}
html[lang="fa"] .bx-h{letter-spacing:0;line-height:1.45}
.bx-lead{margin:0;color:var(--mute);font-size:16px}
html[lang="fa"] .bx-lead,html[lang="fa"] .bx-msg,html[lang="fa"] .bx-done{line-height:1.9}

/* the form: the production field (pep.css .m-form input) and button (.btn .btn-primary) */
.bx-form{display:grid;gap:10px;margin-top:6px}
.bx-form label{font-size:12px;font-weight:600;color:var(--soft)}
html[lang="fa"] .bx-form label{font-size:13px}
.bx-row{display:grid;gap:10px}
.bx-in{height:52px;padding:0 15px;border-radius:14px;border:1px solid rgb(var(--c-ink-rgb)/.1);background:var(--c-bg-3);color:var(--ink);
  font:400 17px var(--ui);outline:0;width:100%;min-width:0}
.bx-in[dir="ltr"]{text-align:left}
.bx-in::placeholder{color:rgb(var(--c-ink-rgb)/.36)}
.bx-in:focus{border-color:rgb(var(--c-ink-rgb)/.34)}
.bx-in:focus-visible{outline:2px solid rgb(var(--c-ink-rgb)/.85);outline-offset:2px}
.bx-in[aria-invalid="true"]{border-color:var(--c-resin)}
.bx-code{letter-spacing:.4em;font-variant-numeric:tabular-nums;text-align:center!important;font-size:22px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:52px;padding:0 22px;border-radius:999px;border:1px solid transparent;
  font:500 16px/1 var(--ui);letter-spacing:-.005em;text-decoration:none;white-space:nowrap;cursor:pointer;transition:background .2s,color .2s,box-shadow .25s}
.btn-primary{background:var(--ink);color:var(--c-bg)}
.btn-primary:hover{background:var(--c-white);box-shadow:0 0 0 5px rgb(var(--c-ink-rgb)/.1)}
.btn-ghost{background:rgb(var(--c-ink-rgb)/.08);color:var(--ink)}
.btn-ghost:hover{background:rgb(var(--c-ink-rgb)/.15)}
.btn[aria-busy="true"]{opacity:.7;cursor:progress}
.btn[disabled]{cursor:default}
@media (min-width:520px){.bx-row{grid-template-columns:minmax(0,1fr) auto}.bx-row.bx-col{grid-template-columns:none}}
.bx-hp{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);opacity:0}
.bx-msg{margin:0;min-height:1.5em;font-size:14.5px;color:var(--c-resin)}
.bx-msg.ok{color:var(--c-ok)}
.bx-done{margin:4px 0 0;padding:16px 18px;border-radius:16px;background:rgb(124 199 154/.08);border:1px solid rgb(124 199 154/.22);color:#cfeedd;font-size:16px}
.bx-done:focus{outline:0}
.bx-h:focus{outline:0}   /* the step's heading takes the focus for screen readers (tabindex=-1); it is not a control: no ring */
/* the notice at collection, under the Send row: quiet, readable */
.bx-note{display:grid;gap:6px;margin-top:4px;font-size:13px;line-height:1.55;color:var(--soft)}
.bx-note p{margin:0}
.bx-note a{color:var(--mute);text-underline-offset:3px}
html[lang="fa"] .bx-note{font-size:13.5px;line-height:1.8}
.bx-small{margin:10px 0 0;font-size:13.5px;color:var(--soft);display:flex;flex-wrap:wrap;gap:6px 18px}
.bx-small a{color:var(--mute);text-underline-offset:3px}
.bx-small a:hover{color:var(--ink)}
.bx-to{unicode-bidi:isolate;direction:ltr;color:var(--ink);font-weight:500}
.bx-check{display:flex;gap:10px;align-items:flex-start;font-size:15px;color:var(--mute);font-weight:400!important}
.bx-check input{width:20px;height:20px;margin:2px 0 0;accent-color:var(--c-ink);flex:none}

/* the waitlist (owner, 22 Nov): the landing (one sentence, one button) and the form, in place; then the thanks */
.bx-landing{display:grid;gap:18px}
.bx-open{justify-self:start;min-width:220px}
.bx-formtop{display:grid;gap:4px}
.bx-back{justify-self:start;display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 4px;border:0;background:none;color:var(--mute);font:500 14.5px var(--ui);cursor:pointer}
.bx-back:hover{color:var(--ink)}
html[dir="rtl"] .bx-arrow{display:inline-block;transform:scaleX(-1)}
.bx-h2{margin:0;font:500 22px/1.3 var(--ui);letter-spacing:-.01em}
.bx-h2:focus{outline:0}
.bx-f{display:grid;gap:6px;min-width:0}
.bx-two{display:grid;gap:10px}
@media (min-width:520px){.bx-two{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
.bx-err{margin:0;font-size:13.5px;color:var(--c-resin)}
.bx-err:empty{display:none}
.bx-sel{appearance:none;-webkit-appearance:none;padding-inline-end:40px;cursor:pointer;
  background-image:linear-gradient(45deg,transparent 50%,var(--mute) 50%),linear-gradient(135deg,var(--mute) 50%,transparent 50%);
  background-position:calc(100% - 20px) 50%,calc(100% - 15px) 50%;background-size:5px 5px;background-repeat:no-repeat}
html[dir="rtl"] .bx-sel{background-position:15px 50%,20px 50%}
.bx-sel option{background:var(--c-bg-2);color:var(--ink)}
.bx-in[disabled]{opacity:.45}
.bx-fs{margin:4px 0 0;padding:0;border:0;display:grid;gap:10px;min-width:0}
.bx-fs legend{padding:0;margin-bottom:8px;font-size:14.5px;font-weight:500;color:var(--ink)}
.bx-opt{color:var(--soft);font-weight:400}
.bx-sys-list{display:grid;gap:14px}
.bx-sys{display:grid;gap:8px;padding-block-start:12px;border-top:1px solid var(--line)}
.bx-sys:first-child{padding-block-start:0;border-top:0}
.bx-model{display:grid;gap:8px;align-items:end}
@media (min-width:520px){.bx-model{grid-template-columns:minmax(0,1fr) auto}.bx-unsure{height:52px;align-items:center}}
.bx-link{justify-self:start;min-height:40px;padding:0 2px;border:0;background:none;color:var(--mute);font:500 14.5px var(--ui);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.bx-link:hover{color:var(--ink)}
.bx-more{border:1px solid var(--line);border-radius:14px;padding:0 14px}
.bx-more summary{min-height:48px;display:flex;align-items:center;cursor:pointer;color:var(--mute);font-size:14.5px}
.bx-more summary:hover{color:var(--ink)}
.bx-more[open] summary{color:var(--ink)}
.bx-more-in{display:grid;gap:10px;padding-block-end:14px}
/* the send row stays above the keyboard and in reach while the form scrolls on a phone */
.bx-send{display:grid;gap:6px;position:sticky;bottom:0;z-index:2;padding-block:10px max(10px,env(safe-area-inset-bottom));background:linear-gradient(to bottom,rgb(8 8 10/0),var(--c-bg) 14px)}
.bx-send .btn{width:100%}
@media (min-width:900px){.bx-send{position:static;background:none;padding:6px 0 0}.bx-send .btn{width:auto;justify-self:start;min-width:200px}}
.bx-done p{margin:0}
.bx-done{display:grid;gap:10px}
.bx-sent{color:var(--mute);font-size:14.5px;margin-top:4px!important}
.bx-sent b{color:var(--ink);font-weight:500}
.bx-sent a{color:var(--ink);text-underline-offset:3px;white-space:nowrap}
html[lang="fa"] .bx-done p{line-height:1.9}

/* the welcome: the owner's letter, then his name, then the period as the server states it */
.bx-letter{display:grid;gap:10px;margin:4px 0 0}
.bx-letter p{margin:0;color:var(--ink);font-size:17px}
html[lang="fa"] .bx-letter p{line-height:2}
.bx-sign{color:var(--mute)!important;font-size:15.5px!important;margin-top:6px!important}
.bx-status{margin:6px 0 0;padding:12px 14px;border-radius:14px;border:1px solid var(--line);color:var(--mute);font-size:14.5px;display:grid;gap:4px}
.bx-status b{color:var(--ink);font-weight:500}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
