:root {
  --asphalt: #26282B; --asphalt-2: #33363A; --deep: #1B1C1E;
  --paint: #F5F4EE; --dim: #B9B8B1; --line: #45484D;
  --go: #3FB67B; --hand: #F07A2A;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--deep); color: var(--paint); font-family: "Barlow", system-ui, sans-serif; display: flex; justify-content: center; }
.app { width: 100%; max-width: 440px; min-height: 100dvh; background: var(--asphalt); display: flex; flex-direction: column; position: relative; }
.view { flex: 1; display: flex; flex-direction: column; }
.hide { display: none !important; }
.cond { font-family: "Barlow Condensed", sans-serif; font-weight: 600; }
.small { font-size: 13px; color: var(--dim); }

.stripes { display: flex; gap: 12px; }
.stripes span { flex: 1; height: 10px; background: var(--paint); }

.av { border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; background: #4A6FA5; color: var(--paint); }
.round { border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 26px; width: 64px; height: 64px; }
.round:disabled { opacity: .35; cursor: not-allowed; }
.go { background: var(--go); color: #0E2A1B; }
.gray { background: var(--asphalt-2); color: var(--paint); }
.paint { background: var(--paint); color: var(--asphalt); }
.pill { border: 1.5px solid var(--line); background: transparent; color: var(--paint); border-radius: 20px; padding: 7px 14px; font: inherit; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.pill.danger { color: var(--hand); }

.bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1.5px solid var(--line); }
.msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; padding: 16px; }
.bub { max-width: 80%; padding: 9px 13px; border-radius: 20px; font-size: 15px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.left { align-self: flex-start; background: var(--asphalt-2); }
.right { align-self: flex-end; background: var(--paint); color: var(--asphalt); }
.ping { align-self: center; border: 1.5px dashed var(--go); color: var(--go); font-size: 13px; }

.compose { display: flex; gap: 8px; align-items: center; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); }
.compose input, .field { flex: 1; background: transparent; border: 1.5px solid var(--line); border-radius: 22px; padding: 11px 16px; color: var(--paint); font: inherit; font-size: 16px; }
.compose input:focus, .field:focus { outline: none; border-color: var(--paint); }
.compose .round { width: 42px; height: 42px; font-size: 19px; }
.note { color: var(--hand); font-size: 13px; text-align: center; padding: 0 16px; min-height: 18px; }

.signal { background: #111; border: 2px solid var(--line); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; align-items: center; cursor: pointer; user-select: none; }
.signal i { font-size: 92px; line-height: 1; color: var(--paint); }
.signal .state { font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 26px; margin-top: 4px; }
.signal.off i, .signal.off .state { color: var(--hand); }

.sect { font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 20px; margin: 22px 0 12px; display: flex; justify-content: space-between; align-items: baseline; }
.people { display: flex; flex-wrap: wrap; gap: 14px 10px; }
.person { width: 64px; display: flex; flex-direction: column; align-items: center; position: relative; cursor: pointer; background: none; border: none; color: var(--paint); font: inherit; padding: 0; }
.person .ring { padding: 3px; border-radius: 50%; border: 2px solid transparent; }
.person.door .ring { border: 2px dashed var(--hand); }
.person .nm { font-size: 12px; margin-top: 5px; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { position: absolute; top: 2px; right: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--go); border: 2px solid var(--asphalt); }
.empty { color: var(--dim); font-size: 14px; line-height: 1.5; }

button:focus-visible, .signal:focus-visible { outline: 2px solid var(--go); outline-offset: 3px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; }

.keywrap { flex: 1; min-width: 0; position: relative; display: flex; }
.keywrap .field { width: 100%; padding-right: 46px; }
.eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: none; border-radius: 50%; background: none; color: var(--dim); font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.eye:focus-visible { outline: 2px solid var(--go); outline-offset: 1px; }
.devices { margin-top: 28px; padding-top: 14px; border-top: 1.5px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }

/* Blocked people: same faces, greyed out, with a small ban mark */
.person.blocked .av { filter: grayscale(1); opacity: .45; }
.person.blocked .nm { color: var(--dim); }
.ban { position: absolute; top: 36px; right: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--asphalt); color: var(--hand); display: flex; align-items: center; justify-content: center; font-size: 16px; }

/* Calls */
.ping.ringing { animation: ringing 1.4s ease-in-out infinite; }
.ping.done { border-color: var(--line); color: var(--dim); }
@keyframes ringing { 50% { background: rgba(63, 182, 123, .16); } }
.ringbar { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; padding: 10px 14px; background: var(--asphalt-2); color: var(--paint); border: 1.5px dashed var(--go); border-radius: 14px; font: inherit; font-size: 14px; cursor: pointer; }
.ringbar .ti { color: var(--go); font-size: 18px; }
.callview { position: fixed; inset: 0; z-index: 10; width: 100%; max-width: 440px; margin: 0 auto; background: var(--asphalt); display: flex; flex-direction: column; }
.callbody { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; }
.callkind { display: flex; align-items: center; gap: 6px; font-size: 15px; letter-spacing: .02em; }
.callkind .ti { color: var(--go); font-size: 18px; }
.pulse { border-radius: 50%; padding: 6px; margin: 22px 0 10px; animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63, 182, 123, .55); } 100% { box-shadow: 0 0 0 36px rgba(63, 182, 123, 0); } }
.callname { display: flex; align-items: center; gap: 8px; font-size: 42px; line-height: 1.1; }
.callname .ti { color: var(--go); font-size: 28px; }
.callbtns { display: flex; justify-content: space-around; padding: 24px 24px calc(44px + env(safe-area-inset-bottom)); text-align: center; font-size: 15px; }
.round.big { width: 76px; height: 76px; font-size: 32px; margin-bottom: 8px; }
.hand { background: var(--hand); color: #2A1405; }
/* Landing, claiming, and getting back in */
.bigk { font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 190px; line-height: .85; background: repeating-linear-gradient(90deg, var(--paint) 0 14px, transparent 14px 24px); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bigbtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 16px 20px; border: none; border-radius: 30px; font: inherit; font-size: 18px; font-weight: 600; cursor: pointer; text-decoration: none; }
.bigbtn.go { background: var(--go); color: #0E2A1B; }
.bigbtn:disabled { opacity: .35; cursor: not-allowed; }
.bigbtn .ti { font-size: 22px; }
.linkbtn { background: none; border: none; color: var(--dim); font: inherit; font-size: 15px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; }
.steps { display: flex; gap: 8px; }
.steps span { flex: 1; height: 8px; background: var(--line); }
.steps span.done { background: var(--paint); }
.step { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 24px 0; }
.steptitle { font-size: 34px; line-height: 1.1; }
.stepsub { font-size: 15px; line-height: 1.5; margin: 0 0 8px; }
.handlebox { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 22px; padding: 0 16px; font-size: 18px; }
.handlebox:focus-within { border-color: var(--paint); }
.handlebox .pre { color: var(--dim); }
.handlebox input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: var(--paint); font: inherit; padding: 13px 0; }
.check { display: flex; align-items: center; gap: 6px; min-height: 22px; font-size: 14px; }
.field.solo { font-size: 18px; padding: 13px 16px; }
.banner { background: var(--asphalt-2); border: 1.5px dashed var(--go); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; font-size: 15px; }
.go-pill { border-color: var(--go); color: var(--go); }
.settings .setrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1.5px solid var(--line); }
.setrow > .ti { font-size: 24px; color: var(--dim); }
.setbody { flex: 1; min-width: 0; }

/* Door colors: the accent only touches the avatar ring and the buttons */
:root { --accent: var(--go); --on-accent: #0E2A1B; }
:root[data-accent="hand"] { --accent: #F07A2A; --on-accent: #2A1405; }
:root[data-accent="paint"] { --accent: #F5F4EE; --on-accent: #26282B; }
:root[data-accent="curb"] { --accent: #B9B8B1; --on-accent: #26282B; }
.door-page .round.go, .door-page .round.paint { background: var(--accent); color: var(--on-accent); }
.door-page #doorAv, .door-page #chatAv { box-shadow: 0 0 0 3px var(--asphalt), 0 0 0 6px var(--accent); }
.av { overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile { display: flex; flex-direction: column; gap: 10px; }
.profile textarea { resize: none; line-height: 1.4; }
.swatches { display: flex; gap: 14px; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--asphalt); outline: 2px solid var(--line); cursor: pointer; padding: 0; }
.swatch[aria-checked="true"] { outline: 3px solid var(--paint); }
.swatch-walk { background: #3FB67B; } .swatch-hand { background: #F07A2A; } .swatch-paint { background: #F5F4EE; } .swatch-curb { background: #B9B8B1; }

/* "Add to your Home Screen" steps */
.howto { display: flex; flex-direction: column; gap: 10px; padding: 10px 0; font-size: 15px; line-height: 1.45; text-align: left; }
.howto-title { font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 18px; }
.howrow { display: flex; gap: 12px; align-items: flex-start; }
.howrow .num { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--paint); color: var(--asphalt); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border: 1.5px solid var(--line); border-radius: 8px; white-space: nowrap; }
.chip .ti { font-size: 17px; }

/* Agreeing to the terms, and the terms page */
.agree { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 1.4; }
.agree input { width: 22px; height: 22px; accent-color: var(--go); flex-shrink: 0; }
.agree a, .legal a { color: var(--paint); }
.legal h1 { font-size: 36px; margin: 6px 0 4px; font-weight: 600; }
.legal h2 { font-size: 26px; margin: 28px 0 4px; font-weight: 600; }
.legal h3 { font-size: 16px; margin: 18px 0 4px; }
.legal p { font-size: 15px; line-height: 1.55; margin: 0; color: var(--dim); }
.legal .review { color: var(--hand); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; box-shadow: 0 0 0 8px rgba(63, 182, 123, .35); }
  .ping.ringing { animation: none; background: rgba(63, 182, 123, .16); }
}
