garage44.eu/jeroen/cartopolis

logclone: git clone https://garage44.eu/jeroen/cartopolis.git

.. /docs/mockups/chat-world/v5-contacts.html

raw

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Cartopolis chat — v5 addendum: contacts and message requests</title>
<link rel="stylesheet" href="style.css">
<style>
:root { --lock:#9fd3b4; --new:#FFD27A; --newbg:rgba(255,210,122,.14); --gps:#4FB2FF; }
body { width:1840px; }
.essence { font-size:26px; line-height:1.3; color:var(--cream); max-width:1400px; margin:16px 0 28px; letter-spacing:-.2px; }
.essence b { color:var(--brand); font-weight:inherit; }
.newtag { font-size:10.5px; padding:1px 7px; border-radius:7px; background:rgba(253,96,18,.18); color:#ffb48a; margin-left:6px; vertical-align:2px; }
.shot h2 .newtag { font-size:11px; }
.shot ul { font-size:14px; }
.thead .who span.lk { color:var(--lock); }

/* person card over the world */
.pcard { position:absolute; left:10px; right:10px; bottom:30px; z-index:6; background:var(--glass); backdrop-filter:blur(16px); border:1px solid var(--gline); border-radius:22px; padding:14px 14px 12px; }
.pcard .hd { display:flex; gap:12px; align-items:center; }
.pcard .hd b { display:block; color:var(--cream); font-weight:inherit; font-size:18px; }
.pcard .hd span { color:var(--dim); font-size:12.5px; }
.facts { display:flex; flex-wrap:wrap; gap:6px; margin:12px 0; }
.facts div { font-size:12px; padding:3px 9px; border-radius:9px; background:var(--raised); color:var(--text); display:flex; gap:5px; align-items:center; }
.facts .nw { background:var(--newbg); color:var(--new); }
.btnrow { display:flex; gap:8px; }
.btnrow div { flex:1; text-align:center; padding:10px 4px; border-radius:12px; font-size:13.5px; background:var(--hover); color:var(--text); display:flex; justify-content:center; gap:6px; align-items:center; }
.btnrow .pw { background:var(--brand); color:#fff; }
.btnrow .ac { background:var(--accent); color:var(--ink); }
.btnrow .sm { flex:0 0 44px; }
.btnrow .bad { color:#ff9c9c; }

/* sheets */
.scrim { position:absolute; inset:0; background:rgba(0,0,0,.55); z-index:6; }
.bigsheet { position:absolute; left:0; right:0; bottom:0; z-index:7; background:var(--surface); border-top-left-radius:26px; border-top-right-radius:26px; padding:0 16px 30px; border-top:1px solid var(--gline); }
.bigsheet h4 { font-size:18px; color:var(--cream); margin:2px 0 4px; font-weight:inherit; }
.bigsheet .sub { color:var(--dim); font-size:13px; margin-bottom:12px; }
.field { background:var(--raised); border-radius:14px; padding:12px 14px; color:var(--text); font-size:15px; min-height:92px; border:1px solid var(--accent); }
.field .cur { display:inline-block; width:2px; height:17px; background:var(--brand); vertical-align:-3px; margin-left:1px; }
.quick { display:flex; gap:6px; flex-wrap:wrap; margin:10px 0; }
.quick div { font-size:12.5px; padding:5px 10px; border-radius:12px; background:var(--raised); color:var(--dim); border:1px solid var(--gline); }
.note { background:var(--raised); border-radius:12px; padding:10px 12px; font-size:12.5px; color:var(--dim); display:flex; gap:9px; margin-top:10px; }
.note b { color:var(--text); font-weight:inherit; }
.note svg { color:var(--lock); margin-top:1px; }
.bigbtn { margin-top:12px; background:var(--brand); color:#fff; border-radius:14px; text-align:center; padding:12px; font-size:15px; display:flex; justify-content:center; gap:7px; align-items:center; }

/* inbox request strip */
.reqrow { display:flex; gap:12px; align-items:center; margin:0 12px 6px; padding:10px 12px; border-radius:16px; background:var(--newbg); border:1px solid rgba(255,210,122,.35); }
.reqrow .stack { display:flex; }
.reqrow .stack .av { width:34px; height:34px; font-size:13px; border:2px solid var(--ink); }
.reqrow .stack .av + .av { margin-left:-12px; }
.reqrow .body { flex:1; }
.reqrow .body b { display:block; color:var(--cream); font-weight:inherit; font-size:15px; }
.reqrow .body span { color:var(--dim); font-size:12.5px; }
.lk-l { color:var(--lock); display:inline-flex; vertical-align:-3px; }

/* request thread */
.reqhead { text-align:center; padding:18px 20px 12px; border-bottom:1px solid var(--gline); }
.reqhead .av { width:72px; height:72px; font-size:28px; margin:0 auto 8px; }
.reqhead b { display:block; color:var(--cream); font-weight:inherit; font-size:20px; }
.reqhead .h { color:var(--dim); font-size:13px; }
.reqhead .facts { justify-content:center; margin:10px 0 0; }
.held { align-self:flex-start; width:230px; border-radius:18px; border-bottom-left-radius:6px; background:var(--raised); padding:10px 12px; font-size:12.5px; color:var(--dim); display:flex; gap:8px; align-items:center; }
.held .blur { width:44px; height:44px; border-radius:10px; background:url(city.jpg) 40% 60%/300px auto; filter:blur(5px) brightness(.7); flex:none; }
.decide { position:absolute; left:0; right:0; bottom:0; padding:12px 14px 30px; background:var(--ink); border-top:1px solid var(--gline); }
.decide p { font-size:12.5px; color:var(--dim); text-align:center; margin-bottom:10px; }
.links { display:flex; justify-content:center; gap:22px; margin-top:12px; font-size:13px; }
.links span { color:var(--dim); }
.links .bad { color:#ff9c9c; }

/* contacts */
.segtop { padding:0 18px 12px; }
.sect { padding:12px 18px 4px; font-size:12px; color:var(--dim); text-transform:uppercase; letter-spacing:.6px; display:flex; justify-content:space-between; }
.crow { display:flex; gap:12px; padding:8px 18px; align-items:center; }
.crow .body { flex:1; min-width:0; }
.crow b { display:block; color:var(--cream); font-weight:inherit; font-size:15px; }
.crow span { color:var(--dim); font-size:12.5px; display:flex; gap:4px; align-items:center; }
.crow span.o { color:var(--brand); }
.crow span.g { color:var(--gps); }
.crow .ic { color:var(--dim); display:flex; gap:14px; }
.dot { position:absolute; right:0; bottom:0; width:13px; height:13px; border-radius:50%; background:#5fd38d; border:2.5px solid var(--ink); }
.pending { color:var(--line) !important; }

/* share sheet */
.qr { width:190px; height:190px; margin:6px auto 10px; background:#fff; border-radius:16px; padding:14px; display:grid; grid-template-columns:repeat(21,1fr); gap:0; }
.qr i { display:block; aspect-ratio:1; }
.qr i.k { background:#0A0E10; }
.handle-line { text-align:center; font-size:20px; color:var(--cream); }
.handle-line span { color:var(--dim); }
.urlbox { margin:10px 0; display:flex; gap:8px; align-items:center; background:var(--raised); border-radius:12px; padding:10px 12px; font-size:13.5px; color:var(--text); }
.urlbox span { flex:1; }
.orline { display:flex; gap:10px; align-items:center; color:var(--dim); font-size:12px; margin:14px 0 10px; }
.orline::before, .orline::after { content:""; flex:1; height:1px; background:var(--gline); }
.search { display:flex; gap:8px; align-items:center; background:var(--raised); border-radius:12px; padding:10px 12px; font-size:14px; color:var(--text); border:1px solid var(--gline); }
.hit { display:flex; gap:10px; align-items:center; padding:10px 2px 0; }
.hit b { display:block; color:var(--cream); font-weight:inherit; font-size:14.5px; }
.hit span { color:var(--dim); font-size:12px; }
.hit .add { margin-left:auto; background:var(--brand); color:#fff; border-radius:10px; padding:6px 12px; font-size:13px; }

/* privacy settings */
.set { padding:6px 18px; }
.set h5 { font-size:13px; color:var(--cream); font-weight:inherit; margin:14px 0 4px; }
.set .c { font-size:12px; color:var(--dim); margin-bottom:8px; }
.opt { display:flex; gap:10px; align-items:flex-start; padding:9px 12px; border-radius:12px; background:var(--surface); border:1px solid var(--gline); margin-bottom:6px; }
.opt .r { width:18px; height:18px; border-radius:50%; border:2px solid var(--line); flex:none; margin-top:1px; }
.opt.on { border-color:var(--brand); background:rgba(253,96,18,.08); }
.opt.on .r { border-color:var(--brand); box-shadow:inset 0 0 0 3px var(--surface); background:var(--brand); }
.opt b { display:block; color:var(--text); font-weight:inherit; font-size:14px; }
.opt span { color:var(--dim); font-size:12px; }
.tog { display:flex; justify-content:space-between; align-items:center; padding:10px 12px; border-radius:12px; background:var(--surface); border:1px solid var(--gline); margin-bottom:6px; font-size:14px; color:var(--text); }
.tog small { display:block; color:var(--dim); font-size:12px; }
.sw { width:40px; height:24px; border-radius:12px; background:var(--muted); position:relative; flex:none; }
.sw::after { content:""; position:absolute; left:3px; top:3px; width:18px; height:18px; border-radius:50%; background:var(--cream); }
.sw.on { background:var(--brand); }
.sw.on::after { left:19px; }

.two { display:grid; grid-template-columns:1fr 1fr 1fr; gap:24px; margin-top:52px; }
.two > div { background:var(--surface); border:1px solid var(--gline); border-radius:16px; padding:18px 20px; }
.two h3 { color:var(--cream); font-size:16px; margin-bottom:8px; }
.two li { color:var(--dim); font-size:13.5px; margin:0 0 7px 18px; }
.two li b { color:var(--text); font-weight:inherit; }
.two table { width:100%; margin-top:0; }
</style>
</head>
<body>
<svg width="0" height="0" style="position:absolute">
  <symbol id="chat" viewBox="0 0 24 24"><path d="M4 5h16v11H9l-5 4z"/></symbol>
  <symbol id="search" viewBox="0 0 24 24"><circle cx="11" cy="11" r="6.5"/><path d="M16 16l4.5 4.5"/></symbol>
  <symbol id="plane" viewBox="0 0 24 24"><path d="M3 13l18-7-7 18-2.5-8.5z"/></symbol>
  <symbol id="lock" viewBox="0 0 24 24"><rect x="5" y="11" width="14" height="9" rx="2"/><path d="M8 11V8a4 4 0 018 0v3"/></symbol>
  <symbol id="people" viewBox="0 0 24 24"><circle cx="9" cy="8" r="3"/><circle cx="17" cy="9" r="2.3"/><path d="M3.5 19a5.5 5.5 0 0111 0M14.5 19a4 4 0 016.5-3"/></symbol>
  <symbol id="add" viewBox="0 0 24 24"><circle cx="10" cy="8" r="3.5"/><path d="M3.5 20a6.5 6.5 0 0113 0M19 8v6M16 11h6"/></symbol>
  <symbol id="pin" viewBox="0 0 24 24"><path d="M12 21s-6.5-6.2-6.5-11A6.5 6.5 0 0118.5 10c0 4.8-6.5 11-6.5 11z"/><circle cx="12" cy="10" r="2.3"/></symbol>
  <symbol id="more" viewBox="0 0 24 24"><circle cx="5" cy="12" r="1.3"/><circle cx="12" cy="12" r="1.3"/><circle cx="19" cy="12" r="1.3"/></symbol>
  <symbol id="back" viewBox="0 0 24 24"><path d="M15 5l-7 7 7 7"/></symbol>
  <symbol id="x" viewBox="0 0 24 24"><path d="M6 6l12 12M18 6L6 18"/></symbol>
  <symbol id="check" viewBox="0 0 24 24"><path d="M5 12.5l4.5 4.5L19 7"/></symbol>
  <symbol id="clock" viewBox="0 0 24 24"><circle cx="12" cy="12" r="8"/><path d="M12 8v4.5l3 2"/></symbol>
  <symbol id="copy" viewBox="0 0 24 24"><rect x="8" y="8" width="12" height="12" rx="2"/><path d="M16 8V5a1 1 0 00-1-1H5a1 1 0 00-1 1v10a1 1 0 001 1h3"/></symbol>
  <symbol id="share" viewBox="0 0 24 24"><path d="M12 15V4M8 8l4-4 4 4M5 13v6a1 1 0 001 1h12a1 1 0 001-1v-6"/></symbol>
  <symbol id="qr" viewBox="0 0 24 24"><rect x="4" y="4" width="6" height="6"/><rect x="14" y="4" width="6" height="6"/><rect x="4" y="14" width="6" height="6"/><path d="M14 14h2v2M20 14v6h-6"/></symbol>
  <symbol id="shield" viewBox="0 0 24 24"><path d="M12 3l7 3v6c0 4.5-3 7.5-7 9-4-1.5-7-4.5-7-9V6z"/></symbol>
  <symbol id="flag" viewBox="0 0 24 24"><path d="M5 21V4M5 4h11l-2 4 2 4H5"/></symbol>
  <symbol id="sprout" viewBox="0 0 24 24"><path d="M12 20v-8M12 12c0-4-3-6-7-6 0 4 3 6 7 6zM12 14c0-3 2.5-5 6-5 0 3-2.5 5-6 5z"/></symbol>
</svg>

<h1>Cartopolis chat — <b>v5 addendum: contacts and message requests</b></h1>
<p class="essence">Today anybody can open a private chat with anybody by typing a username. This adds two things: <b>contacts</b> (people you have accepted, so they can message you directly) and <b>message requests</b> (a stranger's first message waits in a separate tray until you accept it). Most people meet <b>in the world</b>, so that is where you add someone. A link or a username is the other way in.</p>

<div class="principles">
  <div><h3>You meet people in the world</h3><p>Tap an avatar to see who it is and send a first message. The request says where you met (“both at Vismarkt, 5 min ago”), which is the context a stranger's message usually lacks.</p></div>
  <div><h3>A first message is a request</h3><p>It lands under <i>Requests</i>, not in your chats. Until you accept, a stranger can send <i>text only</i>: points, pictures and shared locations are held back. They can't tell whether you have read or declined it.</p></div>
  <div><h3>Contacts are mutual</h3><p>Accepting makes you contacts both ways. A contact messages you straight into your chats, and can see that you're online if you allow it. <i>Removing</i> a contact doesn't block them. Block and report are separate.</p></div>
  <div><h3>The server enforces it</h3><p>Who may send you a request, and how many a new account can send, are checked on the server, like blocks already are. The chat stays <i>end-to-end encrypted</i>, including the first message.</p></div>
</div>

<!-- ============ ROW 1 ============ -->
<div class="row">

  <!-- 1. tap an avatar -->
  <div class="shot">
    <div class="phone">
      <div class="status"><span>14:12</span><div class="notch"></div><span>5G</span></div>
      <div class="world" style="background-image:url(city.jpg); background-position:44% 60%; background-size:auto 1500px;"></div>
      <div class="mk" style="left:118px; top:300px;"><div class="av c2">M</div><div class="stem"></div><div class="foot"></div><div class="name">marit</div></div>
      <div class="mk" style="left:252px; top:392px;"><div class="av c4 ring">S</div><div class="stem o"></div><div class="foot"></div><div class="name">sanne_k</div></div>
      <div class="mk" style="left:196px; top:470px;"><div class="av c3" style="border-color:var(--accent)">J</div><div class="stem"></div><div class="foot"></div><div class="name">you</div></div>
      <div class="bub" style="left:40px; top:196px;">anyone know if the market's on today?</div>
      <div class="pcard">
        <div class="hd"><div class="av c4">S</div><div style="flex:1"><b>sanne_k</b><span>@sanne_k@cartopolis.org</span></div><div class="circ"><svg class="i"><use href="#more"/></svg></div></div>
        <div class="facts">
          <div><svg class="i s"><use href="#pin"/></svg>12 m from you · Vismarkt</div>
          <div class="nw"><svg class="i s"><use href="#sprout"/></svg>New · joined 3 days ago</div>
          <div>no contacts in common</div>
        </div>
        <div class="btnrow">
          <div class="pw"><svg class="i s"><use href="#chat"/></svg>Say hi</div>
          <div class="ac"><svg class="i s"><use href="#add"/></svg>Add contact</div>
        </div>
      </div>
    </div>
    <h2><span>1</span>Tap an avatar<span class="newtag">NEW</span></h2>
    <ul>
      <li>The person card: name, how close they are, and whether the account is new.</li>
      <li><b>Say hi</b> writes a first message. <b>Add contact</b> sends the same request with no message.</li>
      <li>The ⋯ menu has Block and Report, as the chat name menu does now.</li>
    </ul>
  </div>

  <!-- 2. compose request -->
  <div class="shot">
    <div class="phone">
      <div class="status"><span>14:12</span><div class="notch"></div><span>5G</span></div>
      <div class="world" style="background-image:url(city.jpg); background-position:44% 60%; background-size:auto 1500px;"></div>
      <div class="scrim"></div>
      <div class="bigsheet">
        <div class="handle"></div>
        <div style="display:flex; gap:10px; align-items:center; margin-bottom:10px;"><div class="av sm c4">S</div><div><h4>First message to sanne_k</h4><div class="sub" style="margin:0">Goes to their requests</div></div></div>
        <div class="field">Hi! It's on until 17:00, the cheese stall is at the north end<span class="cur"></span></div>
        <div class="quick"><div>👋 Hi!</div><div>Nice build</div><div>Want to explore together?</div></div>
        <div class="note"><svg class="i s"><use href="#lock"/></svg><div><b>Encrypted, text only.</b> sanne_k sees this, your name and where you met. No points, pictures or locations until they accept.</div></div>
        <div class="bigbtn"><svg class="i s"><use href="#plane"/></svg>Send request</div>
      </div>
    </div>
    <h2><span>2</span>Write the first message<span class="newtag">NEW</span></h2>
    <ul>
      <li>One message, text only, filtered like any other line.</li>
      <li>After sending you can't send more until they accept. A request is one knock, not a way to keep messaging someone.</li>
      <li>A new account can send a few requests a day (for example 5). Established accounts can send more.</li>
    </ul>
  </div>

  <!-- 3. recipient inbox -->
  <div class="shot">
    <div class="phone">
      <div class="status"><span>14:13</span><div class="notch"></div><span>5G</span></div>
      <div class="top">
        <div class="titlebar"><h3>Chats</h3><div class="acts"><svg class="i"><use href="#people"/></svg><svg class="i"><use href="#search"/></svg></div></div>
      </div>
      <div class="reqrow">
        <div class="stack"><div class="av c5">J</div><div class="av c6">?</div></div>
        <div class="body"><b>2 message requests</b><span>jeroen (met at Vismarkt) · 1 more</span></div>
        <span class="badge" style="background:var(--new)">2</span>
      </div>
      <div class="chat-row pinned"><div class="av here-disc"><svg class="i"><use href="#pin"/></svg></div><div class="body"><div class="l1">Here · Vismarkt<time>14:12</time></div><div class="l2"><span>marit: anyone know if the market's on…</span></div></div></div>
      <div class="chat-row"><div class="av c1">E</div><div class="body"><div class="l1"><span><span class="lk-l"><svg class="i s"><use href="#lock"/></svg></span> eva</span><time>13:40</time></div><div class="l2"><span>see you at the Martinitoren</span><span class="badge b">1</span></div></div></div>
      <div class="chat-row"><div class="av c2 room">G</div><div class="body"><div class="l1"><span><span class="lk-l"><svg class="i s"><use href="#lock"/></svg></span> Groningen builders</span><time>11:02</time></div><div class="l2"><span>tom: new bench script is live</span></div></div></div>
      <div class="chat-row"><div class="av c3">T</div><div class="body"><div class="l1"><span><span class="lk-l"><svg class="i s"><use href="#lock"/></svg></span> tom</span><time>Mon</time></div><div class="l2"><span>you: 👍</span></div></div></div>
      <div class="chat-row"><div class="av here-disc room" style="background:var(--raised)">🌍</div><div class="body"><div class="l1">Global<time>Sun</time></div><div class="l2"><span>welcome to everyone new this week</span></div></div></div>
      <div class="fab"><svg class="i"><use href="#chat"/></svg></div>
    </div>
    <h2><span>3</span>Requests wait above your chats<span class="newtag">NEW</span></h2>
    <ul>
      <li>One row at the top, not one per stranger. Your chats stay your chats.</li>
      <li>A request doesn't make the phone buzz by default. A message from a contact does.</li>
      <li>The people icon in the title bar opens contacts (5).</li>
    </ul>
  </div>

  <!-- 4. open a request -->
  <div class="shot">
    <div class="phone">
      <div class="status"><span>14:13</span><div class="notch"></div><span>5G</span></div>
      <div class="thead"><svg class="i"><use href="#back"/></svg><div class="who"><b>Message request</b></div><svg class="i"><use href="#more"/></svg></div>
      <div class="reqhead">
        <div class="av c5">J</div>
        <b>jeroen</b>
        <div class="h">@jeroen@cartopolis.org</div>
        <div class="facts">
          <div><svg class="i s"><use href="#pin"/></svg>Both at Vismarkt · 5 min ago</div>
          <div>Member since 2025</div>
          <div>no contacts in common</div>
        </div>
      </div>
      <div class="msgs">
        <div class="day">Today</div>
        <div class="m them">Hi! It's on until 17:00, the cheese stall is at the north end<small>14:12</small></div>
        <div class="held"><div class="blur"></div>A point is held back until you accept</div>
      </div>
      <div class="decide">
        <p>jeroen won't know you've seen this unless you accept.</p>
        <div class="btnrow"><div><svg class="i s"><use href="#x"/></svg>Decline</div><div class="pw"><svg class="i s"><use href="#check"/></svg>Accept</div></div>
        <div class="links"><span class="bad"><svg class="i s" style="vertical-align:-3px"><use href="#shield"/></svg> Block</span><span class="bad"><svg class="i s" style="vertical-align:-3px"><use href="#flag"/></svg> Report</span></div>
      </div>
    </div>
    <h2><span>4</span>Accept, decline, or block<span class="newtag">NEW</span></h2>
    <ul>
      <li>Sanne's phone now. Where you met, how old the account is, and contacts in common: what you need to judge a stranger.</li>
      <li><b>Accept</b>: you become contacts, the chat moves to your chats and the held-back point appears.</li>
      <li><b>Decline</b> removes it without telling them. <b>Report</b> sends this line, as reports from private chats already do.</li>
    </ul>
  </div>
</div>

<!-- ============ ROW 2 ============ -->
<div class="row" style="margin-top:56px">

  <!-- 5. contacts list -->
  <div class="shot">
    <div class="phone">
      <div class="status"><span>14:20</span><div class="notch"></div><span>5G</span></div>
      <div class="top">
        <div class="titlebar"><h3>Contacts</h3><div class="acts"><svg class="i"><use href="#qr"/></svg><svg class="i"><use href="#add"/></svg></div></div>
      </div>
      <div class="sect"><span>In the world now</span><span>2</span></div>
      <div class="crow"><div class="av c1">E<i class="dot"></i></div><div class="body"><b>eva</b><span class="o"><svg class="i s"><use href="#pin"/></svg>avatar at Martinitoren · shared with you</span></div><div class="ic"><svg class="i"><use href="#chat"/></svg></div></div>
      <div class="crow"><div class="av c3">T<i class="dot"></i></div><div class="body"><b>tom</b><span>online</span></div><div class="ic"><svg class="i"><use href="#chat"/></svg></div></div>
      <div class="sect"><span>All contacts</span><span>5</span></div>
      <div class="crow"><div class="av c2">A</div><div class="body"><b>anouk</b><span>added today · met at Noorderplantsoen</span></div><div class="ic"><svg class="i"><use href="#chat"/></svg></div></div>
      <div class="crow"><div class="av c2">L</div><div class="body"><b>lotte</b><span>last seen yesterday</span></div><div class="ic"><svg class="i"><use href="#chat"/></svg></div></div>
      <div class="crow"><div class="av c6">R</div><div class="body"><b>ruben</b><span class="g"><svg class="i s"><use href="#pin"/></svg>real location shared · until 18:00</span></div><div class="ic"><svg class="i"><use href="#chat"/></svg></div></div>
      <div class="sect"><span>Sent requests</span><span>1</span></div>
      <div class="crow"><div class="av c4" style="opacity:.6">S</div><div class="body"><b>sanne_k</b><span class="pending"><svg class="i s"><use href="#clock"/></svg>waiting · sent 14:12</span></div><div class="ic"><span style="font-size:13px">Withdraw</span></div></div>
    </div>
    <h2><span>5</span>Contacts<span class="newtag">NEW</span></h2>
    <ul>
      <li>Who is online, and where, only if they chose to share it with you (the orange avatar and blue GPS rules from v5).</li>
      <li>Sent requests stay “waiting” whatever the other person did. Declining is silent on purpose.</li>
      <li>Tapping a contact opens your chat with them, or starts one.</li>
    </ul>
  </div>

  <!-- 6. share / add by link -->
  <div class="shot">
    <div class="phone">
      <div class="status"><span>14:21</span><div class="notch"></div><span>5G</span></div>
      <div class="top" style="padding-bottom:0"><div class="titlebar"><h3 style="font-size:22px">Add a contact</h3><div class="acts"><svg class="i"><use href="#x"/></svg></div></div></div>
      <div style="padding:0 18px">
        <div class="qr" id="qrcode"></div>
        <div class="handle-line">jeroen<span>@cartopolis.org</span></div>
        <div class="urlbox"><svg class="i s"><use href="#people"/></svg><span>cartopolis.org/u/jeroen</span><svg class="i s"><use href="#copy"/></svg><svg class="i s"><use href="#share"/></svg></div>
        <div style="font-size:12px; color:var(--dim)">Someone who opens your link or scans this can send you a request, whatever your privacy setting. <b style="color:var(--text); font-weight:inherit">Reset link</b> stops old copies working.</div>
        <div class="orline">or find a username</div>
        <div class="search"><svg class="i s"><use href="#search"/></svg>eva_groningen<span style="flex:1"></span><svg class="i s"><use href="#x"/></svg></div>
        <div class="hit"><div class="av sm c1">E</div><div><b>eva_groningen</b><span>exact match only</span></div><div class="add">Request</div></div>
      </div>
    </div>
    <h2><span>6</span>Add by link, QR code or username<span class="newtag">NEW</span></h2>
    <ul>
      <li>For people you know outside Cartopolis: send your link, or scan each other's code when you're together.</li>
      <li>Only an exact username finds someone. There's no directory to browse, so nobody can list every user.</li>
      <li>The link opens the app on Android and the web client everywhere else, the same way place links do.</li>
    </ul>
  </div>

  <!-- 7. new user: empty state -->
  <div class="shot">
    <div class="phone">
      <div class="status"><span>09:02</span><div class="notch"></div><span>5G</span></div>
      <div class="top"><div class="titlebar"><h3>Contacts</h3><div class="acts"><svg class="i"><use href="#qr"/></svg><svg class="i"><use href="#add"/></svg></div></div></div>
      <div style="text-align:center; padding:20px 30px 10px;">
        <div style="width:84px; height:84px; margin:0 auto 12px; border-radius:50%; background:var(--raised); display:grid; place-items:center; color:var(--brand)"><svg class="i" style="width:40px;height:40px"><use href="#people"/></svg></div>
        <div style="color:var(--cream); font-size:18px; margin-bottom:6px">No contacts yet</div>
        <div style="color:var(--dim); font-size:13.5px">Say hi to someone near you, or send your link to a friend who's already here.</div>
      </div>
      <div class="sect"><span>Near you now · Grote Markt</span><span></span></div>
      <div class="crow"><div class="av c2">M</div><div class="body"><b>marit</b><span>30 m · in Here chat</span></div><div class="add" style="background:var(--brand); color:#fff; border-radius:10px; padding:6px 12px; font-size:13px">Say hi</div></div>
      <div class="crow"><div class="av c6">B</div><div class="body"><b>bas_builds</b><span>60 m · building a pavilion</span></div><div class="add" style="background:var(--brand); color:#fff; border-radius:10px; padding:6px 12px; font-size:13px">Say hi</div></div>
      <div class="sect"><span>Places to meet people</span><span></span></div>
      <div class="crow"><div class="av here-disc room"><svg class="i"><use href="#pin"/></svg></div><div class="body"><b>Here</b><span>12 people talking around you, public</span></div></div>
      <div class="crow"><div class="av here-disc room" style="background:var(--raised)">🌍</div><div class="body"><b>Global</b><span>everyone on this server, public</span></div></div>
      <div style="padding:14px 18px 0"><div class="btnrow"><div class="ac"><svg class="i s"><use href="#share"/></svg>Share my link</div></div></div>
    </div>
    <h2><span>7</span>A new user starts from people nearby<span class="newtag">NEW</span></h2>
    <ul>
      <li>A new account has nobody. The empty list points to the people standing near you and the public chats.</li>
      <li>“Near you” only lists people who allow requests from people near them (screen 8).</li>
      <li>A new user's first requests carry the “New” mark, and they can send only a few per day.</li>
    </ul>
  </div>

  <!-- 8. privacy -->
  <div class="shot">
    <div class="phone">
      <div class="status"><span>09:05</span><div class="notch"></div><span>5G</span></div>
      <div class="thead"><svg class="i"><use href="#back"/></svg><div class="who"><b>Settings ▸ Privacy</b></div></div>
      <div class="set">
        <h5>Who can send you a request</h5>
        <div class="c">Your contacts can always message you. Anyone with your link can always send a request.</div>
        <div class="opt"><div class="r"></div><div><b>Anyone</b><span>including by username</span></div></div>
        <div class="opt on"><div class="r"></div><div><b>People you've been near</b><span>in the world in the last hour, or who share a contact with you</span></div></div>
        <div class="opt"><div class="r"></div><div><b>Only with my link</b><span>nobody finds you by name or in the world</span></div></div>
        <h5>Requests</h5>
        <div class="tog"><div>Requests from new accounts<small>younger than 7 days: separate folder</small></div><div class="sw on"></div></div>
        <div class="tog"><div>Notify me of requests<small>off: they wait quietly in the tray</small></div><div class="sw"></div></div>
        <h5>Contacts can see</h5>
        <div class="tog"><div>That I'm online</div><div class="sw on"></div></div>
      </div>
    </div>
    <h2><span>8</span>You decide who can reach you<span class="newtag">NEW</span></h2>
    <ul>
      <li>The default is “people you've been near”: you can be reached by someone you actually met, not by someone who guessed your name.</li>
      <li>Where your avatar is stays per chat and time-limited, as in v5. Being a contact doesn't show it.</li>
      <li>Enforced by the server. A modified client can't send a request you have refused.</li>
    </ul>
  </div>
</div>

<div class="two">
  <div>
    <h3>What a stranger can do before you accept</h3>
    <table>
      <tr><th></th><th>Before</th><th>After</th></tr>
      <tr><td>One text message</td><td><span class="tag y">yes</span></td><td><span class="tag y">yes</span></td></tr>
      <tr><td>More messages</td><td><span class="tag n">no</span></td><td><span class="tag y">yes</span></td></tr>
      <tr><td>Points, pictures</td><td><span class="tag n">held</span></td><td><span class="tag y">yes</span></td></tr>
      <tr><td>Share their location</td><td><span class="tag n">no</span></td><td><span class="tag y">yes</span></td></tr>
      <tr><td>Add you to a group</td><td><span class="tag n">request</span></td><td><span class="tag y">yes</span></td></tr>
      <tr><td>See you read it</td><td><span class="tag n">no</span></td><td><span class="tag y">yes</span></td></tr>
      <tr><td>See you online</td><td><span class="tag n">no</span></td><td>if you allow</td></tr>
    </table>
  </div>
  <div>
    <h3>How it fits what exists today</h3>
    <ul>
      <li><b>Today</b>: typing a username in New chat starts an encrypted chat at once. Blocks, reports and the word filter exist. There are no contacts.</li>
      <li><b>A request is an encrypted chat the recipient hasn't joined yet.</b> Their device holds the invitation. Accept joins it, decline leaves it. The server sees that a request exists (it already sees who is in which chat), never what it says.</li>
      <li><b>The server checks</b> the recipient's “who can reach me” setting, the one-message limit and the per-day limit for new accounts before it passes an invitation on.</li>
      <li>“Met at Vismarkt” comes from the server, which already knows who stood near whom for the Here chat. It's shown only to the two people involved.</li>
    </ul>
  </div>
  <div>
    <h3>Left out on purpose</h3>
    <ul>
      <li><b>Following people</b>: dropped on 2026-09-26. You follow places, not people.</li>
      <li><b>Suggested friends, a people directory, importing your phone contacts</b>: each gives away who uses Cartopolis.</li>
      <li><b>Nicknames and contact groups</b>: later, if the list grows long.</li>
      <li><b>Verifying a contact in person</b>: the key-change warning stays the only protection until proofs come back.</li>
    </ul>
  </div>
</div>

<script>
// deterministic fake QR
const q = document.getElementById("qrcode"); let s = 7;
const finder = (r,c,R,C) => { const y=r-R, x=c-C; if (y<0||x<0||y>6||x>6) return null; return (y==0||y==6||x==0||x==6||(y>=2&&y<=4&&x>=2&&x<=4)); };
for (let r=0;r<21;r++) for (let c=0;c<21;c++) {
  let f = finder(r,c,0,0); if (f===null) f = finder(r,c,0,14); if (f===null) f = finder(r,c,14,0);
  s = (s*1103515245+12345) & 0x7fffffff;
  const on = f===null ? ((r<8&&c<8)||(r<8&&c>12)||(r>12&&c<8) ? false : (s>>16)%2===0) : f;
  const i = document.createElement('i'); if (on) i.className='k'; q.appendChild(i);
}
</script>
</body>
</html>